source: postlfs/security/libcap.xml@ 41b674d

10.0 10.1 11.0 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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 41b674d was 41b674d, checked in by Fernando de Oliveira <fernando@…>, 8 years ago

LFS75 tags

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

  • Property mode set to 100644
File size: 6.4 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 "d43ab9f680435a7fff35b4ace8d45b80">
10 <!ENTITY libcap-size "62 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 &lfs75_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>sed -i 's:LIBDIR:PAM_&amp;:g' pam_cap/Makefile &amp;&amp;
81make</userinput></screen>
82
83 <para>This package does not come with a test suite.</para>
84
85 <para>
86 If you want to disable installing the static library, use this sed:
87 </para>
88
89<screen><userinput>sed -i '/install.*STALIBNAME/ s/^/#/' libcap/Makefile</userinput></screen>
90
91 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
92
93<!-- dev note: make DESTDIR=<DESTDIR> prefix=/usr SBINDIR=<DESTDIR>/sbin PAM_LIBDIR=<DESTDIR>/lib RAISE_SETFCAP=no -->
94
95<screen role="root"><userinput>make prefix=/usr \
96 SBINDIR=/sbin \
97 PAM_LIBDIR=/lib \
98 RAISE_SETFCAP=no install</userinput></screen>
99
100 <para>
101 Still as the <systemitem class="username">root</systemitem> user,
102 clean up some library locations and permissions:
103 </para>
104
105<screen role="root"><userinput>chmod -v 755 /usr/lib/libcap.so &amp;&amp;
106mv -v /usr/lib/libcap.so.* /lib &amp;&amp;
107ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so</userinput></screen>
108
109 </sect2>
110
111 <sect2 role="commands">
112 <title>Command Explanations</title>
113
114 <para>
115 <command>sed -i '...'</command>, <parameter>PAM_LIBDIR=/lib</parameter>:
116 These correct PAM module install location.
117 </para>
118
119 <para><parameter>RAISE_SETFCAP=no</parameter>: This parameter skips trying
120 to use <application>setcap</application> on itself. This avoids an installation
121 error if the kernel or file system do not support extended capabilities.</para>
122
123 </sect2>
124
125 <sect2 role="content">
126 <title>Contents</title>
127
128 <segmentedlist>
129 <segtitle>Installed Programs</segtitle>
130 <segtitle>Installed Library</segtitle>
131 <segtitle>Installed Directories</segtitle>
132
133 <seglistitem>
134 <seg>capsh, getcap, getpcaps, and setcap</seg>
135 <seg>libcap.{so,a}</seg>
136 <seg>None</seg>
137 </seglistitem>
138 </segmentedlist>
139
140 <variablelist>
141 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
142 <?dbfo list-presentation="list"?>
143 <?dbhtml list-presentation="table"?>
144
145 <varlistentry id="capsh">
146 <term><command>capsh</command></term>
147 <listitem>
148 <para>is a shell wrapper to explore and constrain capability support.</para>
149 <indexterm zone="libcap capsh">
150 <primary sortas="b-capsh">capsh</primary>
151 </indexterm>
152 </listitem>
153 </varlistentry>
154
155 <varlistentry id="getcap">
156 <term><command>getcap</command></term>
157 <listitem>
158 <para>examines file capabilities.</para>
159 <indexterm zone="libcap getcap">
160 <primary sortas="b-getcap">getcap</primary>
161 </indexterm>
162 </listitem>
163 </varlistentry>
164
165 <varlistentry id="getpcaps">
166 <term><command>getpcaps</command></term>
167 <listitem>
168 <para>displays the capabilities on the queried process(es).</para>
169 <indexterm zone="libcap getpcaps">
170 <primary sortas="b-getpcaps">getpcaps</primary>
171 </indexterm>
172 </listitem>
173 </varlistentry>
174
175 <varlistentry id="setcap">
176 <term><command>setcap</command></term>
177 <listitem>
178 <para>sets file file capabilities.</para>
179 <indexterm zone="libcap setcap">
180 <primary sortas="b-setcap">setcap</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184
185 <varlistentry id="libcap-lib">
186 <term><filename class='libraryfile'>libcap.{so,a}</filename></term>
187 <listitem>
188 <para>contains the <application>libcap</application> API functions.</para>
189 <indexterm zone="libcap libcap-lib">
190 <primary sortas="c-libcap">libcap.{so,a}</primary>
191 </indexterm>
192 </listitem>
193 </varlistentry>
194
195 </variablelist>
196
197 </sect2>
198
199</sect1>
Note: See TracBrowser for help on using the repository browser.