source: chapter06/libcap.xml@ 0efb8e1

multilib-10.1 multilib-before-cross
Last change on this file since 0efb8e1 was 0efb8e1, checked in by Thomas Trepl <thomas@…>, 23 months ago

MultiLib: Merge changes from trunk

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11783 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 6.1 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-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>Prevent a static library from being installed:</para>
47
48<screen><userinput remap="pre">sed -i '/install.*STACAPLIBNAME/d' libcap/Makefile</userinput></screen>
49
50 <para>Compile the package:</para>
51
52<screen><userinput remap="make">make 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>/lib</filename> rather than
62 <filename>/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 and do some cleanup:</para>
73
74<screen><userinput remap="install">make lib=lib install
75chmod -v 755 /lib/libcap.so.&libcap-version;
76mv -v /lib/libpsx.a /usr/lib
77rm -v /lib/libcap.so
78ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so</userinput></screen>
79
80 </sect2>
81
82 <sect2 arch="ml_32,ml_all" role="installation">
83 <title>Installation of Libcap - 32-bit</title>
84
85 <para>Clean previous build:</para>
86
87<screen><userinput remap="pre">make distclean</userinput></screen>
88
89 <para>Compile the package:</para>
90
91<screen><userinput remap="make">make CC="gcc -m32 -march=i686"</userinput></screen>
92
93 <para>Install the package:</para>
94
95<screen><userinput remap="install">make lib=lib32 prefix=$PWD/DESTDIR/usr -C libcap install
96cp -Rv DESTDIR/usr/lib32/* /usr/lib32
97rm -rf DESTDIR</userinput></screen>
98
99 </sect2>
100
101 <sect2 arch="ml_x32,ml_all" role="installation">
102 <title>Installation of Libcap - x32-bit</title>
103
104 <para>Clean previous build:</para>
105
106<screen><userinput remap="pre">make distclean</userinput></screen>
107
108 <para>Compile the package:</para>
109
110<screen><userinput remap="make">make CC="gcc -mx32"</userinput></screen>
111
112 <para>Install the package:</para>
113
114<screen><userinput remap="install">make lib=libx32 prefix=$PWD/DESTDIR/usr -C libcap install
115cp -Rv DESTDIR/usr/libx32/* /usr/libx32
116rm -rf DESTDIR</userinput></screen>
117
118 </sect2>
119
120 <sect2 id="contents-libcap" role="content">
121 <title>Contents of Libcap</title>
122
123 <segmentedlist>
124 <segtitle>Installed programs</segtitle>
125 <segtitle>Installed library</segtitle>
126
127 <seglistitem>
128 <seg>capsh, getcap, getpcaps, and setcap</seg>
129 <seg>libcap.so and libpsx.a</seg>
130 </seglistitem>
131 </segmentedlist>
132
133 <variablelist>
134 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
135 <?dbfo list-presentation="list"?>
136 <?dbhtml list-presentation="table"?>
137
138 <varlistentry id="capsh">
139 <term><command>capsh</command></term>
140 <listitem>
141 <para>A shell wrapper to explore and constrain capability support</para>
142 <indexterm zone="ch-system-libcap capsh">
143 <primary sortas="b-capsh">capsh</primary>
144 </indexterm>
145 </listitem>
146 </varlistentry>
147
148 <varlistentry id="getcap">
149 <term><command>getcap</command></term>
150 <listitem>
151 <para>Examines file capabilities</para>
152 <indexterm zone="ch-system-libcap getcap">
153 <primary sortas="b-getcap">getcap</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry id="getpcaps">
159 <term><command>getpcaps</command></term>
160 <listitem>
161 <para>Displays the capabilities on the queried process(es)</para>
162 <indexterm zone="ch-system-libcap getpcaps">
163 <primary sortas="b-getpcaps">getpcaps</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167
168 <varlistentry id="setcap">
169 <term><command>setcap</command></term>
170 <listitem>
171 <para>Sets file capabilities</para>
172 <indexterm zone="ch-system-libcap setcap">
173 <primary sortas="b-setcap">setcap</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="libcap">
179 <term><filename class="libraryfile">libcap</filename></term>
180 <listitem>
181 <para>Contains the library functions for manipulating POSIX 1003.1e
182 capabilities</para>
183 <indexterm zone="ch-system-libcap libcap">
184 <primary sortas="c-libcap">libcap</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
189 <varlistentry id="libpsx">
190 <term><filename class="libraryfile">libpsx</filename></term>
191 <listitem>
192 <para>Contains functions to support POSIX semantics for syscalls
193 associated with the pthread library</para>
194 <indexterm zone="ch-system-libcap libpsx">
195 <primary sortas="c-libpsx">libpsx</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 </variablelist>
201
202 </sect2>
203
204</sect1>
Note: See TracBrowser for help on using the repository browser.