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