source: postlfs/security/libcap.xml@ c542fdec

10.0 10.1 11.0 11.1 7.10 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/test-20220226
Last change on this file since c542fdec was c542fdec, checked in by Igor Živković <igor@…>, 8 years ago

update to libcap-2.23

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@12493 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.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 <!ENTITY libcap-download-http "https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-&libcap-version;.tar.xz">
8 <!ENTITY libcap-download-ftp "ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-&libcap-version;.tar.xz">
9 <!ENTITY libcap-md5sum "09a185e4b0aa8a81a51c1e4d0eba7db0">
10 <!ENTITY libcap-size "57 KB">
11 <!ENTITY libcap-buildsize "1.5 MB">
12 <!ENTITY libcap-time "0.1 SBU">
13]>
14
15<sect1 id="libcap" xreflabel="libcap-&libcap-version;">
16 <?dbhtml filename="libcap.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>libcap-&libcap-version;</title>
24
25 <indexterm zone="libcap">
26 <primary sortas="a-libcap">libcap</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to libcap</title>
31
32 <para>The <application>libcap</application> package implements the
33 user-space interfaces to the POSIX 1003.1e capabilities available in Linux
34 kernels. These capabilities are a partitioning of the all powerful root
35 privilege into a set of distinct privileges. </para>
36
37 &lfs74_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&libcap-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&libcap-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &libcap-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &libcap-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &libcap-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &libcap-time;</para>
58 </listitem>
59 </itemizedlist>
60
61 <bridgehead renderas="sect3">libcap Dependencies</bridgehead>
62
63 <bridgehead renderas="sect4">Required</bridgehead>
64 <para role="required"><xref linkend="attr"/></para>
65
66 <bridgehead renderas="sect4">Optional</bridgehead>
67 <para role="optional"><xref linkend="linux-pam"/></para>
68
69 <para condition="html" role="usernotes">User Notes:
70 <ulink url="&blfs-wiki;/libcap"/></para>
71
72 </sect2>
73
74 <sect2 role="installation">
75 <title>Installation of libcap</title>
76
77 <para>Install <application>libcap</application> by running the following
78 commands:</para>
79
80<screen><userinput>make</userinput></screen>
81
82 <para>This package does not come with a test suite.</para>
83
84 <para>
85 If you want to disable installing the static library, use this sed:
86 </para>
87
88<screen><userinput>sed -i '/install.*STALIBNAME/ s/^/#/' libcap/Makefile</userinput></screen>
89
90 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
91
92<screen role="root"><userinput>make RAISE_SETFCAP=no prefix=/usr install &amp;&amp;
93chmod -v 755 /usr/lib/libcap.so &amp;&amp;
94mv -v /usr/lib/libcap.so.* /lib &amp;&amp;
95ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so</userinput></screen>
96
97 </sect2>
98
99 <sect2 role="commands">
100 <title>Command Explanations</title>
101
102 <para><parameter>RAISE_SETFCAP=no</parameter>: This parameter skips trying
103 to use <application>setcap</application> on itself. This avoids an installation
104 error if the kernel or file system do not support extended capabilities.</para>
105
106 </sect2>
107
108 <sect2 role="content">
109 <title>Contents</title>
110
111 <segmentedlist>
112 <segtitle>Installed Programs</segtitle>
113 <segtitle>Installed Library</segtitle>
114 <segtitle>Installed Directories</segtitle>
115
116 <seglistitem>
117 <seg>capsh, getcap, getpcaps, and setcap</seg>
118 <seg>libcap.{so,a}</seg>
119 <seg>None</seg>
120 </seglistitem>
121 </segmentedlist>
122
123 <variablelist>
124 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
125 <?dbfo list-presentation="list"?>
126 <?dbhtml list-presentation="table"?>
127
128 <varlistentry id="capsh">
129 <term><command>capsh</command></term>
130 <listitem>
131 <para>is a shell wrapper to explore and constrain capability support.</para>
132 <indexterm zone="libcap capsh">
133 <primary sortas="b-capsh">capsh</primary>
134 </indexterm>
135 </listitem>
136 </varlistentry>
137
138 <varlistentry id="getcap">
139 <term><command>getcap</command></term>
140 <listitem>
141 <para>examines file capabilities.</para>
142 <indexterm zone="libcap getcap">
143 <primary sortas="b-getcap">getcap</primary>
144 </indexterm>
145 </listitem>
146 </varlistentry>
147
148 <varlistentry id="getpcaps">
149 <term><command>getpcaps</command></term>
150 <listitem>
151 <para>displays the capabilities on the queried process(es).</para>
152 <indexterm zone="libcap getpcaps">
153 <primary sortas="b-getpcaps">getpcaps</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry id="setcap">
159 <term><command>setcap</command></term>
160 <listitem>
161 <para>sets file file capabilities.</para>
162 <indexterm zone="libcap setcap">
163 <primary sortas="b-setcap">setcap</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167
168 <varlistentry id="libcap-lib">
169 <term><filename class='libraryfile'>libcap.{so,a}</filename></term>
170 <listitem>
171 <para>contains the <application>libcap</application> API functions.</para>
172 <indexterm zone="libcap libcap-lib">
173 <primary sortas="c-libcap">libcap.{so,a}</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 </variablelist>
179
180 </sect2>
181
182</sect1>
Note: See TracBrowser for help on using the repository browser.