source: chapter08/libcap.xml@ 19a03e1

10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 19a03e1 was e8c3099, checked in by Pierre Labastie <pieere@…>, 3 years ago

Adapt libcap instruction to the new libpsx.so shared library (was only static
before)

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12061 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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