source: postlfs/security/libcap.xml@ 60c5a5d

gnome
Last change on this file since 60c5a5d was 60c5a5d, checked in by Christopher Gregory <cjg@…>, 10 years ago

Added gnome-intro page and added that the build is assumed to be done on a systemd system. Removed reference to systemd not being
supported on platform page Removed reference to systmed users not needing to install
libcap as it is already covered on the intro Converted colord page to
use systemd

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/gnome@13409 af4574ff-66df-0310-9fd7-8a98e5e911e0

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