source: chapter06/libcap.xml@ 040ecb6

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 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 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 040ecb6 was 040ecb6, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Update to man-db-2.7.4.
Update to linux-4.2.3.
Update to tzdata2015g.
Many updates to installed files and directories. Huge thanks to Fernando.

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

  • Property mode set to 100644
File size: 4.5 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.*STALIBNAME/d' libcap/Makefile</userinput></screen>
49
50 <para>Compile the package:</para>
51
52<screen><userinput remap="make">make</userinput></screen>
53
54 <para>This package does not come with a test suite.</para>
55
56 <para>Install the package:</para>
57
58<screen><userinput remap="install">make RAISE_SETFCAP=no prefix=/usr install
59chmod -v 755 /usr/lib/libcap.so</userinput></screen>
60
61 <variablelist>
62 <title>The meaning of the make option:</title>
63
64 <varlistentry>
65 <term><parameter>RAISE_SETFCAP=no</parameter></term>
66 <listitem>
67 <para>This parameter skips trying to use <command>setcap</command>
68 on itself. This avoids an installation error if the kernel or file
69 system does not support extended capabilities.</para>
70 </listitem>
71 </varlistentry>
72
73 </variablelist>
74
75 <para>The shared library needs to be moved to
76 <filename class="directory">/lib</filename>, and as a result the
77 <filename class="extension">.so</filename> file in
78 <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
79
80<screen><userinput remap="install">mv -v /usr/lib/libcap.so.* /lib
81ln -sfv ../../lib/$(readlink /usr/lib/libcap.so) /usr/lib/libcap.so</userinput></screen>
82
83 </sect2>
84
85 <sect2 id="contents-libcap" role="content">
86 <title>Contents of Libcap</title>
87
88 <segmentedlist>
89 <segtitle>Installed programs</segtitle>
90 <segtitle>Installed library</segtitle>
91
92 <seglistitem>
93 <seg>capsh, getcap, getpcaps, and setcap</seg>
94 <seg>libcap.so</seg>
95 </seglistitem>
96 </segmentedlist>
97
98 <variablelist>
99 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
100 <?dbfo list-presentation="list"?>
101 <?dbhtml list-presentation="table"?>
102
103 <varlistentry id="capsh">
104 <term><command>capsh</command></term>
105 <listitem>
106 <para>A shell wrapper to explore and constrain capability support</para>
107 <indexterm zone="ch-system-libcap capsh">
108 <primary sortas="b-capsh">capsh</primary>
109 </indexterm>
110 </listitem>
111 </varlistentry>
112
113 <varlistentry id="getcap">
114 <term><command>getcap</command></term>
115 <listitem>
116 <para>Examines file capabilities</para>
117 <indexterm zone="ch-system-libcap getcap">
118 <primary sortas="b-getcap">getcap</primary>
119 </indexterm>
120 </listitem>
121 </varlistentry>
122
123 <varlistentry id="getpcaps">
124 <term><command>getpcaps</command></term>
125 <listitem>
126 <para>Displays the capabilities on the queried process(es)</para>
127 <indexterm zone="ch-system-libcap getpcaps">
128 <primary sortas="b-getpcaps">getpcaps</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="libcap">
134 <term><filename class="libraryfile">libcap</filename></term>
135 <listitem>
136 <para>Contains the library functions for manipulating POSIX 1003.1e
137 capabilities</para>
138 <indexterm zone="ch-system-libcap libcap">
139 <primary sortas="c-libcap">libcap</primary>
140 </indexterm>
141 </listitem>
142 </varlistentry>
143
144 </variablelist>
145
146 </sect2>
147
148</sect1>
Note: See TracBrowser for help on using the repository browser.