source: chapter06/libcap.xml@ c173f88

10.0 10.0-rc1 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 c173f88 was 0ebc874, checked in by Pierre Labastie <pieere@…>, 4 years ago

libcap-2.31

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

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