source: postlfs/security/acl.xml@ a52e6d76

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 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 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a52e6d76 was a52e6d76, checked in by Wayne Blaszczyk <wblaszcz@…>, 13 years ago

ticket 3130

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

  • Property mode set to 100644
File size: 7.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 acl-download-http "http://mirrors.zerg.biz/nongnu/acl/acl-&acl-version;.src.tar.gz">
8 <!-- <!ENTITY acl-download-ftp "ftp://oss.sgi.com/projects/xfs/cmd_tars-oct_09/acl-&acl-version;.src.tar.gz"> -->
9 <!ENTITY acl-download-ftp " ">
10 <!ENTITY acl-md5sum "181445894cca986da9ae0099d5ce2d08">
11 <!ENTITY acl-size "362 KB">
12 <!ENTITY acl-buildsize "5 MB">
13 <!ENTITY acl-time "0.1 SBU">
14]>
15
16<sect1 id="acl" xreflabel="acl-&acl-version;">
17 <?dbhtml filename="acl.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>acl-&acl-version;</title>
25
26 <indexterm zone="acl">
27 <primary sortas="a-acl">acl</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to acl</title>
32
33 <para>The <application>acl</application> package contains utilities to
34 administer Access Control Lists, which are used to define more fine-grained
35 discretionary access rights for files and directories.</para>
36
37 <para>&lfssvn_checked;20101029&lfssvn_checked2;</para>
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&acl-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&acl-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &acl-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &acl-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &acl-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &acl-time;</para>
58 </listitem>
59 </itemizedlist>
60
61 <bridgehead renderas="sect3">acl Dependencies</bridgehead>
62
63 <bridgehead renderas="sect4">Required</bridgehead>
64 <para role="required"><xref linkend="attr"/></para>
65
66 <para condition="html" role="usernotes">User Notes:
67 <ulink url="&blfs-wiki;/acl"/></para>
68
69 </sect2>
70
71 <sect2 role="installation">
72 <title>Installation of acl</title>
73
74 <para>Install <application>acl</application> by running the following
75 commands:</para>
76
77<screen><userinput>cat &gt; test/sort-getfacl-output &lt;&lt; "EOF" &amp;&amp;
78#! /usr/bin/perl -w
79
80undef $/;
81print join("\n\n", sort split(/\n\n/, &lt;&gt;)), "\n\n";
82EOF
83chmod 755 test/sort-getfacl-output &amp;&amp;
84sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' \
85 -e 's|@prefix|$(DESTDIR)&amp;|' \
86 -e 's|@libexec|$(DESTDIR)&amp;|' \
87 include/builddefs.in &amp;&amp;
88
89./configure --prefix=/usr --libexecdir=/usr/lib &amp;&amp;
90make</userinput></screen>
91
92 <para>For meaningful results, the tests need to be carried out on a file
93 system that supports extended attributes. It is also required that
94 <application>Coreutils</application> is re-installed after
95 <application>acl</application> is installed so that the extra acl bit
96 displays correctly on a <command>ls</command> command.</para>
97
98 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
99
100<screen role="root"><userinput>make install install-dev install-lib &amp;&amp;
101install -v -m644 doc/*.txt /usr/share/doc/acl-&acl-version; &amp;&amp;
102chmod -v 755 /usr/lib/libacl.{la,so.1.1.0}</userinput></screen>
103
104 <para>You should now re-install <application><ulink
105 url="&lfs-root;/chapter06/coreutils.html">Coreutils</ulink>
106 </application> and proceed to run the test suite.</para>
107
108 <para>There are three sets of tests that come with this package. Issue the
109 following to execute all three:
110 <command>make tests root-tests ext-tests</command>.</para>
111
112 </sect2>
113
114 <sect2 role="commands">
115 <title>Command Explanations</title>
116
117 <para><command>cat &gt; test/sort-getfacl-output ... EOF</command>: This
118 command creates a missing test script.</para>
119
120 <para><command>sed -i ... include/builddefs.in</command>: This command
121 changes the documentation directory to a versioned directory and provides
122 for a DESTDIR installation.</para>
123
124 <para><command>chmod ...</command>: This command modifies the permissions
125 of installed library files to standards.</para>
126
127 </sect2>
128
129 <sect2 role="configuration">
130 <title>Configuring acl</title>
131 <sect3><title>Configuration Information</title>
132
133 <para>There is no configuration to <application>acl</application> itself,
134 but to get any use out of <application>acl</application>, a filesystem
135 needs to support access control lists.</para>
136
137 <para>One way to achieve this is to add the acl option to an ext3
138 filesystem in the <filename>/etc/fstab</filename> file as shown
139 below:</para>
140
141<screen># file system mount-point type options dump fsck
142# order
143
144/dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
145
146 </sect3>
147
148 </sect2>
149
150 <sect2 role="content">
151 <title>Contents</title>
152
153 <segmentedlist>
154 <segtitle>Installed Programs</segtitle>
155 <segtitle>Installed Library</segtitle>
156 <segtitle>Installed Directories</segtitle>
157
158 <seglistitem>
159 <seg>chacl, getfacl, and setfacl</seg>
160 <seg>libacl.{so,a}</seg>
161 <seg>/usr/{include/acl,share/doc/acl-&acl-version;}</seg>
162 </seglistitem>
163 </segmentedlist>
164
165 <variablelist>
166 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
167 <?dbfo list-presentation="list"?>
168 <?dbhtml list-presentation="table"?>
169
170 <varlistentry id="chacl">
171 <term><command>chacl</command></term>
172 <listitem>
173 <para>changes the access control list of a file or directory.</para>
174 <indexterm zone="acl chacl">
175 <primary sortas="b-chacl">chacl</primary>
176 </indexterm>
177 </listitem>
178 </varlistentry>
179
180 <varlistentry id="getfacl">
181 <term><command>getfacl</command></term>
182 <listitem>
183 <para>gets file access control lists.</para>
184 <indexterm zone="acl getfacl">
185 <primary sortas="b-getfacl">getfacl</primary>
186 </indexterm>
187 </listitem>
188 </varlistentry>
189
190 <varlistentry id="setfacl">
191 <term><command>setfacl</command></term>
192 <listitem>
193 <para>sets file access control lists.</para>
194 <indexterm zone="acl setfacl">
195 <primary sortas="b-setfacl">setfacl</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="libacl">
201 <term><filename class='libraryfile'>libacl.{so,a}</filename></term>
202 <listitem>
203 <para>contains the <application>acl</application> API functions.</para>
204 <indexterm zone="acl libacl">
205 <primary sortas="c-libacl">libacl.{so,a}</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 </variablelist>
211
212 </sect2>
213
214</sect1>
Note: See TracBrowser for help on using the repository browser.