source: postlfs/security/libcap.xml@ 54d58907

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 54d58907 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 19 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

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