source: postlfs/security/libcap.xml@ 45ab6c7

trunk
Last change on this file since 45ab6c7 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 months ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

  • Property mode set to 100644
File size: 4.8 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 "&kernel-dl;/linux/libs/security/linux-privs/libcap2/libcap-&libcap-version;.tar.xz">
8 <!ENTITY libcap-download-ftp " ">
9 <!ENTITY libcap-md5sum "b43ae3690fe4d2cb32e4d25c0983ecd3">
10 <!ENTITY libcap-size "140 KB">
11 <!ENTITY libcap-buildsize "1.4 MB">
12 <!ENTITY libcap-time "less than 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 <date>$Date$</date>
20 </sect1info>
21
22 <title>libcap-&libcap-version; with PAM</title>
23
24 <indexterm zone="libcap-pam">
25 <primary sortas="a-libcap-pam">libcap</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to libcap with PAM</title>
30
31 <para>
32 The <application>libcap</application> package was installed in
33 LFS, but if <application>Linux-PAM</application> support is desired,
34 the PAM module must be built (after installation of
35 <application>Linux-PAM</application>).
36 </para>
37
38 &lfs101_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&libcap-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&libcap-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &libcap-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &libcap-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &libcap-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &libcap-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">libcap Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <xref linkend="linux-pam"/>
79 </para>
80
81 <para condition="html" role="usernotes">User Notes:
82 <ulink url="&blfs-wiki;/libcap"/></para>
83
84 </sect2>
85
86 <sect2 role="installation">
87 <title>Installation of libcap</title>
88
89 <note>
90 <para>
91 If you are upgrading libcap from a previous version, use the
92 instructions in
93 <ulink url="&lfs-root;/chapter08/libcap.html">
94 LFS libcap page
95 </ulink> to upgrade libcap. If <xref linkend="linux-pam"/> has been
96 built, the PAM module will automatically be built too.
97 </para>
98 </note>
99
100 <para>
101 Install <application>libcap</application> by running the following
102 commands:
103 </para>
104
105<screen><userinput>make -C pam_cap</userinput></screen>
106
107 <para>
108 This package does not come with a test suite.
109 </para>
110
111 <para>
112 Now, as the <systemitem class="username">root</systemitem> user:
113 </para>
114
115<screen role="root"><userinput>install -v -m755 pam_cap/pam_cap.so /lib/security &amp;&amp;
116install -v -m644 pam_cap/capability.conf /etc/security</userinput></screen>
117
118 </sect2>
119
120 <sect2 role="configuration">
121 <title>Configuring Libcap</title>
122
123 <para>
124 In order to allow <application>Linux-PAM</application> to grant
125 privileges based on POSIX capabilites, you need to add the libcap module
126 to the begining of the <filename>/etc/pam.d/system-auth</filename> file.
127 Make the required edits with the following commands:
128 </para>
129
130<screen role="root"><userinput>mv -v /etc/pam.d/system-auth{,.bak} &amp;&amp;
131cat &gt; /etc/pam.d/system-auth &lt;&lt; "EOF" &amp;&amp;
132<literal># Begin /etc/pam.d/system-auth
133
134auth optional pam_cap.so</literal>
135EOF
136tail -n +3 /etc/pam.d/system-auth.bak &gt;&gt; /etc/pam.d/system-auth</userinput></screen>
137
138 <para>
139 Additonally, you'll need to modify the
140 <filename>/etc/security/capability.conf</filename> file to grant
141 necessary privileges to users, and utilize the <command>setcap</command>
142 utility to set capabilities on specific utilities as needed. See
143 <command>man 8 setcap</command> and
144 <command>man 3 cap_from_text</command> for additional information.
145 </para>
146
147 </sect2>
148
149 <sect2 role="content">
150 <title>Contents</title>
151
152 <segmentedlist>
153 <segtitle>Installed Programs</segtitle>
154 <segtitle>Installed Library</segtitle>
155 <segtitle>Installed Directories</segtitle>
156
157 <seglistitem>
158 <seg>None</seg>
159 <seg>pam_cap.so</seg>
160 <seg>None</seg>
161 </seglistitem>
162 </segmentedlist>
163
164 </sect2>
165
166</sect1>
Note: See TracBrowser for help on using the repository browser.