source: chapter08/libcap.xml@ 8cece12

11.1 11.1-rc1 arm multilib s6-init trunk xry111/clfs-ng xry111/lfs-next
Last change on this file since 8cece12 was 8cece12, checked in by Xi Ruoyao <xry111@…>, 10 months ago

libcap: remove unneeded chmod command

Libcap-2.59 install shared libs with mode 0755 by default.

  • Property mode set to 100644
File size: 4.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-libcap" role="wrap">
9 <?dbhtml filename="libcap.html"?>
10
11 <sect1info condition="script">
12 <productname>libcap</productname>
13 <productnumber>&libcap-version;</productnumber>
14 <address>&libcap-url;</address>
15 </sect1info>
16
17 <title>Libcap-&libcap-version;</title>
18
19 <indexterm zone="ch-system-libcap">
20 <primary sortas="a-Libcap">Libcap</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Libcap package implements the user-space interfaces to the POSIX
27 1003.1e capabilities available in Linux kernels. These capabilities are a
28 partitioning of the all powerful root privilege into a set of distinct
29 privileges.</para>
30
31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
34
35 <seglistitem>
36 <seg>&libcap-fin-sbu;</seg>
37 <seg>&libcap-fin-du;</seg>
38 </seglistitem>
39 </segmentedlist>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Libcap</title>
45
46 <para>Prevent static libraries from being installed:</para>
47
48<screen><userinput remap="pre">sed -i '/install -m.*STA/d' libcap/Makefile</userinput></screen>
49
50 <para>Compile the package:</para>
51
52<screen><userinput remap="make">make prefix=/usr lib=lib</userinput></screen>
53
54 <variablelist>
55 <title>The meaning of the make option:</title>
56
57 <varlistentry>
58 <term><parameter>lib=lib</parameter></term>
59 <listitem>
60 <para>This parameter sets the library directory to
61 <filename>/usr/lib</filename> rather than
62 <filename>/usr/lib64</filename> on x86_64. It has no effect on
63 x86.</para>
64 </listitem>
65 </varlistentry>
66 </variablelist>
67
68 <para>To test the results, issue:</para>
69
70<screen><userinput remap="test">make test</userinput></screen>
71
72 <para>Install the package:</para>
73
74<screen><userinput remap="install">make prefix=/usr lib=lib install</userinput></screen>
75
76 </sect2>
77
78 <sect2 id="contents-libcap" role="content">
79 <title>Contents of Libcap</title>
80
81 <segmentedlist>
82 <segtitle>Installed programs</segtitle>
83 <segtitle>Installed library</segtitle>
84
85 <seglistitem>
86 <seg>capsh, getcap, getpcaps, and setcap</seg>
87 <seg>libcap.so and libpsx.so</seg>
88 </seglistitem>
89 </segmentedlist>
90
91 <variablelist>
92 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
93 <?dbfo list-presentation="list"?>
94 <?dbhtml list-presentation="table"?>
95
96 <varlistentry id="capsh">
97 <term><command>capsh</command></term>
98 <listitem>
99 <para>A shell wrapper to explore and constrain capability support</para>
100 <indexterm zone="ch-system-libcap capsh">
101 <primary sortas="b-capsh">capsh</primary>
102 </indexterm>
103 </listitem>
104 </varlistentry>
105
106 <varlistentry id="getcap">
107 <term><command>getcap</command></term>
108 <listitem>
109 <para>Examines file capabilities</para>
110 <indexterm zone="ch-system-libcap getcap">
111 <primary sortas="b-getcap">getcap</primary>
112 </indexterm>
113 </listitem>
114 </varlistentry>
115
116 <varlistentry id="getpcaps">
117 <term><command>getpcaps</command></term>
118 <listitem>
119 <para>Displays the capabilities on the queried process(es)</para>
120 <indexterm zone="ch-system-libcap getpcaps">
121 <primary sortas="b-getpcaps">getpcaps</primary>
122 </indexterm>
123 </listitem>
124 </varlistentry>
125
126 <varlistentry id="setcap">
127 <term><command>setcap</command></term>
128 <listitem>
129 <para>Sets file capabilities</para>
130 <indexterm zone="ch-system-libcap setcap">
131 <primary sortas="b-setcap">setcap</primary>
132 </indexterm>
133 </listitem>
134 </varlistentry>
135
136 <varlistentry id="libcap">
137 <term><filename class="libraryfile">libcap</filename></term>
138 <listitem>
139 <para>Contains the library functions for manipulating POSIX 1003.1e
140 capabilities</para>
141 <indexterm zone="ch-system-libcap libcap">
142 <primary sortas="c-libcap">libcap</primary>
143 </indexterm>
144 </listitem>
145 </varlistentry>
146
147 <varlistentry id="libpsx">
148 <term><filename class="libraryfile">libpsx</filename></term>
149 <listitem>
150 <para>Contains functions to support POSIX semantics for syscalls
151 associated with the pthread library</para>
152 <indexterm zone="ch-system-libcap libpsx">
153 <primary sortas="c-libpsx">libpsx</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 </variablelist>
159
160 </sect2>
161
162</sect1>
Note: See TracBrowser for help on using the repository browser.