source: chapter06/acl.xml@ 61ce0b1

7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since 61ce0b1 was 61ce0b1, checked in by DJ Lucas <dj@…>, 10 years ago

Synchronized with LFS-SVN-20140611.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10576 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.9 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
8<sect1 id="ch-system-acl" role="wrap">
9 <?dbhtml filename="acl.html"?>
10
11 <sect1info condition="script">
12 <productname>acl</productname>
13 <productnumber>&acl-version;</productnumber>
14 <address>&acl-url;</address>
15 </sect1info>
16
17 <title>Acl-&acl-version;</title>
18
19 <indexterm zone="ch-system-acl">
20 <primary sortas="a-Acl">Acl</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Acl package contains utilities to administer Access Control Lists,
27 which are used to define more fine-grained discretionary access rights for
28 files and directories.</para>
29
30 <segmentedlist>
31 <segtitle>&buildtime;</segtitle>
32 <segtitle>&diskspace;</segtitle>
33
34 <seglistitem>
35 <seg>&acl-ch6-sbu;</seg>
36 <seg>&acl-ch6-du;</seg>
37 </seglistitem>
38 </segmentedlist>
39
40 </sect2>
41
42 <sect2 role="installation">
43 <title>Installation of Acl</title>
44
45 <para>Modify the documentation directory so that it is a versioned
46 directory:</para>
47
48<screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' include/builddefs.in</userinput></screen>
49
50 <para>Fix some broken tests:</para>
51
52<screen><userinput remap="pre">sed -i "s:| sed.*::g" test/{sbits-restore,cp,misc}.test</userinput></screen>
53
54 <para>Additionally, fix a bug that causes <command>getfacl -e</command>
55 to segfault on overly long group name:</para>
56
57<screen><userinput remap="pre">sed -i -e "/TABS-1;/a if (x > (TABS-1)) x = (TABS-1);" \
58 libacl/__acl_to_any_text.c</userinput></screen>
59
60 <para>Prepare Acl for compilation:</para>
61
62<screen><userinput remap="configure">./configure --prefix=/usr --libexecdir=/usr/lib</userinput></screen>
63
64 <para>Compile the package:</para>
65
66<screen><userinput remap="make">make</userinput></screen>
67
68 <para>The Acl tests need to be run on a filesystem that supports access
69 controls after <application>Coreutils</application> has been built with the
70 Acl libraries. If desired, return to this package and run <command>make
71 tests</command> after <application>Coreutils</application> has been built
72 later in this chapter.</para>
73
74 <para>Install the package:</para>
75
76<screen><userinput remap="install">make install install-dev install-lib
77chmod -v 755 /usr/lib/libacl.so</userinput></screen>
78
79 <para>The shared library needs to be moved to
80 <filename class="directory">/lib</filename>, and as a result the
81 <filename class="extension">.so</filename> file in
82 <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
83
84<screen><userinput remap="install">mv -v /usr/lib/libacl.so.* /lib
85ln -sfv ../../lib/$(readlink /usr/lib/libacl.so) /usr/lib/libacl.so</userinput></screen>
86
87 </sect2>
88
89 <sect2 id="contents-acl" role="content">
90 <title>Contents of Acl</title>
91
92 <segmentedlist>
93 <segtitle>Installed programs</segtitle>
94 <segtitle>Installed library</segtitle>
95 <segtitle>Installed directories</segtitle>
96
97 <seglistitem>
98 <seg>chacl, getfacl, and setacl</seg>
99 <seg>libacl.{a,so}</seg>
100 <seg>/usr/include/acl, /usr/share/doc/acl-&acl-version;</seg>
101 </seglistitem>
102 </segmentedlist>
103
104 <variablelist>
105 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
106 <?dbfo list-presentation="list"?>
107 <?dbhtml list-presentation="table"?>
108
109 <varlistentry id="chacl">
110 <term><command>chacl</command></term>
111 <listitem>
112 <para>Changes the access control list of a file
113 or directory.</para>
114 <indexterm zone="ch-system-acl chacl">
115 <primary sortas="b-chacl">chacl</primary>
116 </indexterm>
117 </listitem>
118 </varlistentry>
119
120 <varlistentry id="getfacl">
121 <term><command>getfacl</command></term>
122 <listitem>
123 <para>Gets file access control lists.</para>
124 <indexterm zone="ch-system-acl getfacl">
125 <primary sortas="b-getfacl">getfacl</primary>
126 </indexterm>
127 </listitem>
128 </varlistentry>
129
130 <varlistentry id="setacl">
131 <term><command>setacl</command></term>
132 <listitem>
133 <para>Sets file access control lists.</para>
134 <indexterm zone="ch-system-acl setacl">
135 <primary sortas="b-setacl">setacl</primary>
136 </indexterm>
137 </listitem>
138 </varlistentry>
139
140 <varlistentry id="libacl">
141 <term><filename class="libraryfile">libacl</filename></term>
142 <listitem>
143 <para>Contains the <application>Acl</application> API functions.</para>
144 <indexterm zone="ch-system-acl libacl">
145 <primary sortas="c-libacl">libacl</primary>
146 </indexterm>
147 </listitem>
148 </varlistentry>
149
150 </variablelist>
151
152 </sect2>
153
154</sect1>
Note: See TracBrowser for help on using the repository browser.