source: chapter06/acl.xml@ ee1a413

multilib-10.1
Last change on this file since ee1a413 was ee1a413, checked in by Thomas Trepl <thomas@…>, 5 years ago

Change profiling attribute to enable selection of m32 and/or mx32. Fixes #4452.

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

  • Property mode set to 100644
File size: 6.3 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>Prepare Acl for compilation:</para>
46
47<screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
48 --bindir=/bin \
49 --disable-static \
50 --libexecdir=/usr/lib \
51 --docdir=/usr/share/doc/acl-&acl-version;</userinput></screen>
52
53<screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
54 --disable-static \
55 --libexecdir=/usr/lib \
56 --docdir=/usr/share/doc/acl-&acl-version;</userinput></screen>
57
58 <para>Compile the package:</para>
59
60<screen><userinput remap="make">make</userinput></screen>
61
62 <para>The Acl tests need to be run on a filesystem that supports access
63 controls after <application>Coreutils</application> has been built with the
64 Acl libraries. If desired, return to this package and run <command>make
65 check</command> after <application>Coreutils</application> has been built
66 later in this chapter.</para>
67
68 <para>Install the package:</para>
69
70<screen><userinput remap="install">make install</userinput></screen>
71
72 <para>The shared library needs to be moved to
73 <filename class="directory">/lib</filename>, and as a result the
74 <filename class="extension">.so</filename> file in
75 <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
76
77<screen><userinput remap="install">mv -v /usr/lib/libacl.so.* /lib
78ln -sfv ../../lib/$(readlink /usr/lib/libacl.so) /usr/lib/libacl.so</userinput></screen>
79
80 </sect2>
81
82 <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
83
84 <sect2 arch="ml_32,ml_all" role="installation">
85 <title>Installation of Acl - 32-bit</title>
86
87 <para>Clean previous build:</para>
88
89<screen><userinput remap="pre">make distclean</userinput></screen>
90
91 <para>Prepare Acl for compilation:</para>
92
93<screen><userinput remap="configure">CC="gcc -m32" ./configure \
94 --prefix=/usr --libdir=/usr/lib32 \
95 --disable-static --libexecdir=/usr/lib32 \
96 --host=i686-pc-linux-gnu</userinput></screen>
97
98 <para>Compile the package:</para>
99
100<screen><userinput remap="make">make</userinput></screen>
101
102 <para>Install the package:</para>
103
104<screen><userinput remap="install">make DESTDIR=$(pwd)/DESTDIR install
105cp -Rv DESTDIR/usr/lib32/* /usr/lib32
106rm -rf DESTDIR</userinput></screen>
107
108 </sect2>
109
110 <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ -->
111
112 <sect2 arch="ml_x32,ml_all" role="installation">
113 <title>Installation of Acl - x32-bit</title>
114
115 <para>Clean previous build:</para>
116
117<screen><userinput remap="pre">make distclean</userinput></screen>
118
119 <para>Prepare Acl for compilation:</para>
120
121<screen><userinput remap="configure">CC="gcc -mx32" ./configure \
122 --prefix=/usr --libdir=/usr/libx32 \
123 --disable-static --libexecdir=/usr/libx32 \
124 --host=x86_64-pc-linux-gnux32</userinput></screen>
125
126 <para>Compile the package:</para>
127
128<screen><userinput remap="make">make</userinput></screen>
129
130 <para>Install the package:</para>
131
132<screen><userinput remap="install">make DESTDIR=$(pwd)/DESTDIR install
133cp -Rv DESTDIR/usr/libx32/* /usr/libx32
134rm -rf DESTDIR</userinput></screen>
135
136 </sect2>
137
138 <sect2 id="contents-acl" role="content">
139 <title>Contents of Acl</title>
140
141 <segmentedlist>
142 <segtitle>Installed programs</segtitle>
143 <segtitle>Installed library</segtitle>
144 <segtitle>Installed directories</segtitle>
145
146 <seglistitem>
147 <seg>chacl, getfacl, and setfacl</seg>
148 <seg>libacl.so</seg>
149 <seg>/usr/include/acl and /usr/share/doc/acl-&acl-version;</seg>
150 </seglistitem>
151 </segmentedlist>
152
153 <variablelist>
154 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
155 <?dbfo list-presentation="list"?>
156 <?dbhtml list-presentation="table"?>
157
158 <varlistentry id="chacl">
159 <term><command>chacl</command></term>
160 <listitem>
161 <para>Changes the access control list of a file
162 or directory</para>
163 <indexterm zone="ch-system-acl chacl">
164 <primary sortas="b-chacl">chacl</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
168
169 <varlistentry id="getfacl">
170 <term><command>getfacl</command></term>
171 <listitem>
172 <para>Gets file access control lists</para>
173 <indexterm zone="ch-system-acl getfacl">
174 <primary sortas="b-getfacl">getfacl</primary>
175 </indexterm>
176 </listitem>
177 </varlistentry>
178
179 <varlistentry id="setfacl">
180 <term><command>setfacl</command></term>
181 <listitem>
182 <para>Sets file access control lists</para>
183 <indexterm zone="ch-system-acl setfacl">
184 <primary sortas="b-setfacl">setfacl</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
189 <varlistentry id="libacl">
190 <term><filename class="libraryfile">libacl</filename></term>
191 <listitem>
192 <para>Contains the library functions for manipulating Access Control Lists</para>
193 <indexterm zone="ch-system-acl libacl">
194 <primary sortas="c-libacl">libacl</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 </variablelist>
200
201 </sect2>
202
203</sect1>
Note: See TracBrowser for help on using the repository browser.