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 | <para>Adjust the permission of the shared libraries:</para>
|
---|
77 |
|
---|
78 | <screen><userinput remap="install">chmod -v 755 /usr/lib/lib{cap,psx}.so.&libcap-version;</userinput></screen>
|
---|
79 |
|
---|
80 | </sect2>
|
---|
81 |
|
---|
82 | <sect2 id="contents-libcap" role="content">
|
---|
83 | <title>Contents of Libcap</title>
|
---|
84 |
|
---|
85 | <segmentedlist>
|
---|
86 | <segtitle>Installed programs</segtitle>
|
---|
87 | <segtitle>Installed library</segtitle>
|
---|
88 |
|
---|
89 | <seglistitem>
|
---|
90 | <seg>capsh, getcap, getpcaps, and setcap</seg>
|
---|
91 | <seg>libcap.so and libpsx.so</seg>
|
---|
92 | </seglistitem>
|
---|
93 | </segmentedlist>
|
---|
94 |
|
---|
95 | <variablelist>
|
---|
96 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
97 | <?dbfo list-presentation="list"?>
|
---|
98 | <?dbhtml list-presentation="table"?>
|
---|
99 |
|
---|
100 | <varlistentry id="capsh">
|
---|
101 | <term><command>capsh</command></term>
|
---|
102 | <listitem>
|
---|
103 | <para>A shell wrapper to explore and constrain capability support</para>
|
---|
104 | <indexterm zone="ch-system-libcap capsh">
|
---|
105 | <primary sortas="b-capsh">capsh</primary>
|
---|
106 | </indexterm>
|
---|
107 | </listitem>
|
---|
108 | </varlistentry>
|
---|
109 |
|
---|
110 | <varlistentry id="getcap">
|
---|
111 | <term><command>getcap</command></term>
|
---|
112 | <listitem>
|
---|
113 | <para>Examines file capabilities</para>
|
---|
114 | <indexterm zone="ch-system-libcap getcap">
|
---|
115 | <primary sortas="b-getcap">getcap</primary>
|
---|
116 | </indexterm>
|
---|
117 | </listitem>
|
---|
118 | </varlistentry>
|
---|
119 |
|
---|
120 | <varlistentry id="getpcaps">
|
---|
121 | <term><command>getpcaps</command></term>
|
---|
122 | <listitem>
|
---|
123 | <para>Displays the capabilities on the queried process(es)</para>
|
---|
124 | <indexterm zone="ch-system-libcap getpcaps">
|
---|
125 | <primary sortas="b-getpcaps">getpcaps</primary>
|
---|
126 | </indexterm>
|
---|
127 | </listitem>
|
---|
128 | </varlistentry>
|
---|
129 |
|
---|
130 | <varlistentry id="setcap">
|
---|
131 | <term><command>setcap</command></term>
|
---|
132 | <listitem>
|
---|
133 | <para>Sets file capabilities</para>
|
---|
134 | <indexterm zone="ch-system-libcap setcap">
|
---|
135 | <primary sortas="b-setcap">setcap</primary>
|
---|
136 | </indexterm>
|
---|
137 | </listitem>
|
---|
138 | </varlistentry>
|
---|
139 |
|
---|
140 | <varlistentry id="libcap">
|
---|
141 | <term><filename class="libraryfile">libcap</filename></term>
|
---|
142 | <listitem>
|
---|
143 | <para>Contains the library functions for manipulating POSIX 1003.1e
|
---|
144 | capabilities</para>
|
---|
145 | <indexterm zone="ch-system-libcap libcap">
|
---|
146 | <primary sortas="c-libcap">libcap</primary>
|
---|
147 | </indexterm>
|
---|
148 | </listitem>
|
---|
149 | </varlistentry>
|
---|
150 |
|
---|
151 | <varlistentry id="libpsx">
|
---|
152 | <term><filename class="libraryfile">libpsx</filename></term>
|
---|
153 | <listitem>
|
---|
154 | <para>Contains functions to support POSIX semantics for syscalls
|
---|
155 | associated with the pthread library</para>
|
---|
156 | <indexterm zone="ch-system-libcap libpsx">
|
---|
157 | <primary sortas="c-libpsx">libpsx</primary>
|
---|
158 | </indexterm>
|
---|
159 | </listitem>
|
---|
160 | </varlistentry>
|
---|
161 |
|
---|
162 | </variablelist>
|
---|
163 |
|
---|
164 | </sect2>
|
---|
165 |
|
---|
166 | </sect1>
|
---|