source: chapter06/libcap.xml@ f8ea68b

multilib-10.1
Last change on this file since f8ea68b was f8ea68b, checked in by Thomas Trepl <thomas@…>, 4 years ago

MultiLib: Merge changes from trunk

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

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