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-ch6-sbu;</seg>
|
---|
37 | <seg>&libcap-ch6-du;</seg>
|
---|
38 | </seglistitem>
|
---|
39 | </segmentedlist>
|
---|
40 |
|
---|
41 | </sect2>
|
---|
42 |
|
---|
43 | <sect2 role="installation">
|
---|
44 | <title>Installation of Libcap</title>
|
---|
45 |
|
---|
46 | <para>Compile the package:</para>
|
---|
47 |
|
---|
48 | <screen><userinput remap="make">make</userinput></screen>
|
---|
49 |
|
---|
50 | <para>This package does not come with a test suite.</para>
|
---|
51 |
|
---|
52 | <para>Install the package:</para>
|
---|
53 |
|
---|
54 | <screen><userinput remap="install">make RAISE_SETFCAP=no prefix=/usr install
|
---|
55 | chmod -v 0755 /usr/lib/libcap.so.2.22</userinput></screen>
|
---|
56 |
|
---|
57 | <para>The shared library needs to be moved to
|
---|
58 | <filename class="directory">/lib</filename>, and as a result the
|
---|
59 | <filename class="extension">.so</filename> file in
|
---|
60 | <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
|
---|
61 |
|
---|
62 | <screen><userinput remap="install">mv -v /usr/lib/libcap.so.* /lib
|
---|
63 | ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so</userinput></screen>
|
---|
64 |
|
---|
65 | </sect2>
|
---|
66 |
|
---|
67 | <sect2 id="contents-libcap" role="content">
|
---|
68 | <title>Contents of Libcap</title>
|
---|
69 |
|
---|
70 | <segmentedlist>
|
---|
71 | <segtitle>Installed programs</segtitle>
|
---|
72 | <segtitle>Installed library</segtitle>
|
---|
73 |
|
---|
74 | <seglistitem>
|
---|
75 | <seg>capsh, getcap, getpcaps, and setcap</seg>
|
---|
76 | <seg>libcap.{so,a}</seg>
|
---|
77 | </seglistitem>
|
---|
78 | </segmentedlist>
|
---|
79 |
|
---|
80 | <variablelist>
|
---|
81 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
82 | <?dbfo list-presentation="list"?>
|
---|
83 | <?dbhtml list-presentation="table"?>
|
---|
84 |
|
---|
85 | <varlistentry id="capsh">
|
---|
86 | <term><command>capsh</command></term>
|
---|
87 | <listitem>
|
---|
88 | <para>A shell wrapper to explore and constrain capability support</para>
|
---|
89 | <indexterm zone="ch-system-libcap capsh">
|
---|
90 | <primary sortas="b-capsh">capsh</primary>
|
---|
91 | </indexterm>
|
---|
92 | </listitem>
|
---|
93 | </varlistentry>
|
---|
94 |
|
---|
95 | <varlistentry id="getcap">
|
---|
96 | <term><command>getcap</command></term>
|
---|
97 | <listitem>
|
---|
98 | <para>Examines file capabilities</para>
|
---|
99 | <indexterm zone="ch-system-libcap getcap">
|
---|
100 | <primary sortas="b-getcap">getcap</primary>
|
---|
101 | </indexterm>
|
---|
102 | </listitem>
|
---|
103 | </varlistentry>
|
---|
104 |
|
---|
105 | <varlistentry id="getpcaps">
|
---|
106 | <term><command>getpcaps</command></term>
|
---|
107 | <listitem>
|
---|
108 | <para>Displays the capabilities on the queried process(es)</para>
|
---|
109 | <indexterm zone="ch-system-libcap getpcaps">
|
---|
110 | <primary sortas="b-getpcaps">getpcaps</primary>
|
---|
111 | </indexterm>
|
---|
112 | </listitem>
|
---|
113 | </varlistentry>
|
---|
114 |
|
---|
115 | <varlistentry id="libcap">
|
---|
116 | <term><filename class="libraryfile">libcap.{so,a}</filename></term>
|
---|
117 | <listitem>
|
---|
118 | <para>Contains the libcap API functions</para>
|
---|
119 | <indexterm zone="ch-system-libcap libcap">
|
---|
120 | <primary sortas="c-libcap">libcap</primary>
|
---|
121 | </indexterm>
|
---|
122 | </listitem>
|
---|
123 | </varlistentry>
|
---|
124 |
|
---|
125 | </variablelist>
|
---|
126 |
|
---|
127 | </sect2>
|
---|
128 |
|
---|
129 | </sect1>
|
---|