source: chapter06/acl.xml@ 9baa148

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since 9baa148 was 9baa148, checked in by Krejzi <krejzi@…>, 11 years ago

Added Acl for Systemd.

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

  • Property mode set to 100644
File size: 4.5 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>Prepare Acl for compilation:</para>
51
52<screen><userinput remap="configure">./configure --prefix=/usr --libdir=/lib --libexecdir=/usr/lib</userinput></screen>
53
54 <para>Compile the package:</para>
55
56<screen><userinput remap="make">make</userinput></screen>
57
58 <para>The Acl tests need to be run on a filesystem that supports access
59 controls. To test the results, issue:</para>
60
61<screen><userinput remap="test">make -k tests root-tests</userinput></screen>
62
63 <para>Install the package:</para>
64
65<screen><userinput remap="install">make install install-dev install-lib
66chmod -v 0755 /lib/libacl.so.1.1.0</userinput></screen>
67
68 <para>Remove static library and libtool archive from
69 <filename class="directory">/lib</filename>, they exist in
70 <filename class="directory">/usr/lib</filename>:</para>
71
72<screen><userinput remap="install">rm -v /lib/libacl.{a,la,so}</userinput></screen>
73
74 <para>Change default location for the libtool archive and recreate
75 symlink to shared library since it points to removed file:</para>
76
77<screen><userinput remap="install">sed -i 's@/lib@/usr/lib@' /usr/lib/libacl.la
78ln -sfv ../../lib/libacl.so.1 /usr/lib/libacl.so</userinput></screen>
79
80 </sect2>
81
82 <sect2 id="contents-acl" role="content">
83 <title>Contents of Acl</title>
84
85 <segmentedlist>
86 <segtitle>Installed programs</segtitle>
87 <segtitle>Installed library</segtitle>
88 <segtitle>Installed directories</segtitle>
89
90 <seglistitem>
91 <seg>chacl, getfacl, and setacl</seg>
92 <seg>libacl.{so,a}</seg>
93 <seg>/usr/include/acl and /usr/share/doc/acl-&acl-version;</seg>
94 </seglistitem>
95 </segmentedlist>
96
97 <variablelist>
98 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
99 <?dbfo list-presentation="list"?>
100 <?dbhtml list-presentation="table"?>
101
102 <varlistentry id="chacl">
103 <term><command>chacl</command></term>
104 <listitem>
105 <para>Changes the access control list of a file
106 or directory.</para>
107 <indexterm zone="ch-system-acl chacl">
108 <primary sortas="b-chacl">chacl</primary>
109 </indexterm>
110 </listitem>
111 </varlistentry>
112
113 <varlistentry id="getfacl">
114 <term><command>getfacl</command></term>
115 <listitem>
116 <para>Gets file access control lists.</para>
117 <indexterm zone="ch-system-acl getfacl">
118 <primary sortas="b-getfacl">getfacl</primary>
119 </indexterm>
120 </listitem>
121 </varlistentry>
122
123 <varlistentry id="setacl">
124 <term><command>setacl</command></term>
125 <listitem>
126 <para>Sets file access control lists.</para>
127 <indexterm zone="ch-system-acl setacl">
128 <primary sortas="b-setacl">setacl</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="libacl">
134 <term><filename class="libraryfile">libacl.{so,a}</filename></term>
135 <listitem>
136 <para>Contains the <application>Acl</application> API functions.</para>
137 <indexterm zone="ch-system-acl libacl">
138 <primary sortas="c-libacl">libacl.{so,a}</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 </variablelist>
144
145 </sect2>
146
147</sect1>
Note: See TracBrowser for help on using the repository browser.