source: BOOK/final-system/common/acl.xml@ 71cd9de

systemd
Last change on this file since 71cd9de was 09c0ac7, checked in by William Harrington <kb0iic@…>, 9 years ago

Add the Bc memory leak check patch.

  • Property mode set to 100644
File size: 4.3 KB
RevLine 
[fbaca08]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 <title>ACL-&acl-version;</title>
12
13 <indexterm zone="ch-system-acl">
14 <primary sortas="a-ACL">ACL</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>ACL is a library for getting and setting POSIX Access Control Lists.</para>
21
22 </sect2>
23
24 <sect2 role="installation">
25 <title>Installation of ACL</title>
26
[09c0ac7]27 <para os="s1">Apply a sed for a test:</para>
28
29<screen os="s2"><userinput>sed -i -e "/TABS-1;/a if (x > (TABS-1)) x = (TABS-1);" \
30 libacl/__acl_to_any_text.c</userinput></screen>
31
[72d6a1b]32 <para os="a">Apply a sed to install the documentation with a versioned
33 directory:</para>
[fbaca08]34
[72d6a1b]35<screen os="b"><userinput>sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' include/builddefs.in</userinput></screen>
[fbaca08]36
[72d6a1b]37 <para os="c">Apply a sed to fix a few tests:</para>
[fbaca08]38
[72d6a1b]39<screen os="d"><userinput>sed -i "s:| sed.*::g" test/{sbits-restore,cp,misc}.test</userinput></screen>
[24b004c]40
[72d6a1b]41 <para os="e">Prepare ACL for compilation:</para>
[fbaca08]42
[72d6a1b]43<screen os="f"><userinput>./configure --prefix=/usr --libexecdir=/usr/lib</userinput></screen>
[fbaca08]44
[72d6a1b]45 <para os="g">Compile the package:</para>
[fbaca08]46
[72d6a1b]47<screen os="h"><userinput>make</userinput></screen>
[fbaca08]48
[72d6a1b]49 <para os="i">The Acl tests need a filesystem which supports access controls
50 after Coreutils has been built with the Acl libraries. Return to this
51 section after Coreutils has been installed. Test the results:</para>
52
53<screen os="j"><userinput remap="test">make tests</userinput></screen>
54
55 <para os="k">Install the package:</para>
56
57<screen os="l"><userinput>make install install-dev install-lib</userinput></screen>
58
59 <para os="m">Move the shared library to <filename class="directory">/lib</filename>
[99beb4e]60 and recreate the symlink in <filename class="directory">/usr/lib</filename>:</para>
[fbaca08]61
[72d6a1b]62<screen os="n"><userinput>mv -v /usr/lib/libacl.so.* /lib
[99beb4e]63ln -sfv ../../lib/libacl.so.1 /usr/lib/libacl.so</userinput></screen>
[fbaca08]64
[72d6a1b]65 <para os="o">Set the proper permissions on the shared library:</para>
[fbaca08]66
[72d6a1b]67<screen os="p"><userinput>chmod 755 -v /lib/libacl.so.1.1.0</userinput></screen>
[fbaca08]68
69 </sect2>
70
71 <sect2 id="contents-acl" role="content">
72 <title>Contents of ACL</title>
73
74 <segmentedlist>
75 <segtitle>Installed programs</segtitle>
76 <segtitle>Installed libraries</segtitle>
77 <segtitle>Installed directories</segtitle>
78
79 <seglistitem>
80 <seg>chacl, getfacl, setfacl</seg>
81 <seg>libattr.[a,so]</seg>
[d1f79ab]82 <seg>/usr/include/acl, /usr/share/doc/acl-&acl-version;</seg>
[fbaca08]83 </seglistitem>
84 </segmentedlist>
85
86 <variablelist>
87 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
88 <?dbfo list-presentation="list"?>
89 <?dbhtml list-presentation="table"?>
90
91 <varlistentry id="chacl">
92 <term><command>chacl</command></term>
93 <listitem>
94 <para>Changes the access control list of a file or directory</para>
95 <indexterm zone="ch-system-acl chacl">
96 <primary sortas="b-chacl">chacl</primary>
97 </indexterm>
98 </listitem>
99 </varlistentry>
100
101 <varlistentry id="getfacl">
102 <term><command>getfacl</command></term>
103 <listitem>
104 <para>Get file access control lists</para>
105 <indexterm zone="ch-system-acl getfacl">
106 <primary sortas="b-getfacl">getfacl</primary>
107 </indexterm>
108 </listitem>
109 </varlistentry>
110
111 <varlistentry id="setfacl">
112 <term><command>setfacl</command></term>
113 <listitem>
114 <para>Set file access control lists</para>
115 <indexterm zone="ch-system-acl setfacl">
116 <primary sortas="b-setfacl">setfacl</primary>
117 </indexterm>
118 </listitem>
119 </varlistentry>
120
121 <varlistentry id="libacl">
122 <term><filename class="libraryfile">libacl</filename></term>
123 <listitem>
124 <para>Library to manage access control lists</para>
125 <indexterm zone="ch-system-acl libacl">
126 <primary sortas="c-libacl">libacl</primary>
127 </indexterm>
128 </listitem>
129 </varlistentry>
130
131 </variablelist>
132
133 </sect2>
134
135</sect1>
Note: See TracBrowser for help on using the repository browser.