|
@@ -23,9 +23,8 @@
|
|
<sect2 role="package">
|
|
<sect2 role="package">
|
|
<title/>
|
|
<title/>
|
|
|
|
|
|
- <para>The Acl package contains utilities to administer Access Control Lists,
|
|
|
|
- which are used to define more fine-grained discretionary access rights for
|
|
|
|
- files and directories.</para>
|
|
|
|
|
|
+ <para>Acl 软件包包含管理访问控制列表的工具,
|
|
|
|
+ 访问控制列表能够更细致地自由定义文件和目录的访问权限。</para>
|
|
|
|
|
|
<segmentedlist>
|
|
<segmentedlist>
|
|
<segtitle>&buildtime;</segtitle>
|
|
<segtitle>&buildtime;</segtitle>
|
|
@@ -42,21 +41,20 @@
|
|
<sect2 role="installation">
|
|
<sect2 role="installation">
|
|
<title>安装Acl</title>
|
|
<title>安装Acl</title>
|
|
|
|
|
|
- <para>Modify the documentation directory so that it is a versioned
|
|
|
|
- directory:</para>
|
|
|
|
|
|
+ <para>修改文档安装目录,使它包含版本号:</para>
|
|
|
|
|
|
<screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in</userinput></screen>
|
|
<screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in</userinput></screen>
|
|
|
|
|
|
- <para>Fix some broken tests:</para>
|
|
|
|
|
|
+ <para>修复一些不能正常运行的测试:</para>
|
|
|
|
|
|
<screen><userinput remap="pre">sed -i "s:| sed.*::g" test/{sbits-restore,cp,misc}.test</userinput></screen>
|
|
<screen><userinput remap="pre">sed -i "s:| sed.*::g" test/{sbits-restore,cp,misc}.test</userinput></screen>
|
|
|
|
|
|
- <para>Fix a problem in the test procedures caused by changes in perl-5.26:</para>
|
|
|
|
|
|
+ <para>修复 perl-5.26 的更新引入的测试过程问题:</para>
|
|
|
|
|
|
<screen><userinput remap="pre">sed -i 's/{(/\\{(/' test/run</userinput></screen>
|
|
<screen><userinput remap="pre">sed -i 's/{(/\\{(/' test/run</userinput></screen>
|
|
|
|
|
|
- <para>Additionally, fix a bug that causes <command>getfacl -e</command>
|
|
|
|
- to segfault on overly long group name:</para>
|
|
|
|
|
|
+ <para>另外,修复一个导致 <command>getfacl -e</command>
|
|
|
|
+ 在有过长组名称时发生段错误的 bug:</para>
|
|
|
|
|
|
<screen><userinput remap="pre">sed -i -e "/TABS-1;/a if (x > (TABS-1)) x = (TABS-1);" \
|
|
<screen><userinput remap="pre">sed -i -e "/TABS-1;/a if (x > (TABS-1)) x = (TABS-1);" \
|
|
libacl/__acl_to_any_text.c</userinput></screen>
|
|
libacl/__acl_to_any_text.c</userinput></screen>
|
|
@@ -76,21 +74,22 @@
|
|
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
|
|
- <para>The Acl tests need to be run on a filesystem that supports access
|
|
|
|
- controls after <application>Coreutils</application> has been built with the
|
|
|
|
- Acl libraries. If desired, return to this package and run <command>make -j1
|
|
|
|
- tests</command> after <application>Coreutils</application> has been built
|
|
|
|
- later in this chapter.</para>
|
|
|
|
|
|
+ <para>Acl 的测试套件必须在构建了链接到 Acl 库的
|
|
|
|
+ <application>Coreutils</application>
|
|
|
|
+ 后才能在支持访问控制的文件系统上运行。
|
|
|
|
+ 如果想运行它们,在构建好 <application>Coreutils</application>
|
|
|
|
+ 再返回这里,并执行 <command>make -j1 tests</command>。</para>
|
|
|
|
|
|
<para>安装该软件包:</para>
|
|
<para>安装该软件包:</para>
|
|
|
|
|
|
<screen><userinput remap="install">make install install-dev install-lib
|
|
<screen><userinput remap="install">make install install-dev install-lib
|
|
chmod -v 755 /usr/lib/libacl.so</userinput></screen>
|
|
chmod -v 755 /usr/lib/libacl.so</userinput></screen>
|
|
|
|
|
|
- <para>The shared library needs to be moved to
|
|
|
|
- <filename class="directory">/lib</filename>, and as a result the
|
|
|
|
- <filename class="extension">.so</filename> file in
|
|
|
|
- <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
|
|
|
|
|
|
+ <para>共享库需要被移动到
|
|
|
|
+ <filename class="directory">/lib</filename> 目录,因此
|
|
|
|
+ <filename class="directory">/usr/lib</filename> 中的
|
|
|
|
+ <filename class="extension">.so</filename> 符号链接需要重新建立:
|
|
|
|
+ </para>
|
|
|
|
|
|
<screen><userinput remap="install">mv -v /usr/lib/libacl.so.* /lib
|
|
<screen><userinput remap="install">mv -v /usr/lib/libacl.so.* /lib
|
|
ln -sfv ../../lib/$(readlink /usr/lib/libacl.so) /usr/lib/libacl.so</userinput></screen>
|
|
ln -sfv ../../lib/$(readlink /usr/lib/libacl.so) /usr/lib/libacl.so</userinput></screen>
|
|
@@ -106,9 +105,9 @@ ln -sfv ../../lib/$(readlink /usr/lib/libacl.so) /usr/lib/libacl.so</userinput><
|
|
<segtitle>安装的目录</segtitle>
|
|
<segtitle>安装的目录</segtitle>
|
|
|
|
|
|
<seglistitem>
|
|
<seglistitem>
|
|
- <seg>chacl, getfacl, and setfacl</seg>
|
|
|
|
|
|
+ <seg>chacl, getfacl, 以及 setfacl</seg>
|
|
<seg>libacl.so</seg>
|
|
<seg>libacl.so</seg>
|
|
- <seg>/usr/include/acl and /usr/share/doc/acl-&acl-version;</seg>
|
|
|
|
|
|
+ <seg>/usr/include/acl 和 /usr/share/doc/acl-&acl-version;</seg>
|
|
</seglistitem>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
</segmentedlist>
|
|
|
|
|
|
@@ -120,8 +119,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libacl.so) /usr/lib/libacl.so</userinput><
|
|
<varlistentry id="chacl">
|
|
<varlistentry id="chacl">
|
|
<term><command>chacl</command></term>
|
|
<term><command>chacl</command></term>
|
|
<listitem>
|
|
<listitem>
|
|
- <para>Changes the access control list of a file
|
|
|
|
- or directory</para>
|
|
|
|
|
|
+ <para>修改文件或目录的访问控制列表</para>
|
|
<indexterm zone="ch-system-acl chacl">
|
|
<indexterm zone="ch-system-acl chacl">
|
|
<primary sortas="b-chacl">chacl</primary>
|
|
<primary sortas="b-chacl">chacl</primary>
|
|
</indexterm>
|
|
</indexterm>
|
|
@@ -131,7 +129,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libacl.so) /usr/lib/libacl.so</userinput><
|
|
<varlistentry id="getfacl">
|
|
<varlistentry id="getfacl">
|
|
<term><command>getfacl</command></term>
|
|
<term><command>getfacl</command></term>
|
|
<listitem>
|
|
<listitem>
|
|
- <para>Gets file access control lists</para>
|
|
|
|
|
|
+ <para>获取文件访问控制列表</para>
|
|
<indexterm zone="ch-system-acl getfacl">
|
|
<indexterm zone="ch-system-acl getfacl">
|
|
<primary sortas="b-getfacl">getfacl</primary>
|
|
<primary sortas="b-getfacl">getfacl</primary>
|
|
</indexterm>
|
|
</indexterm>
|
|
@@ -141,7 +139,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libacl.so) /usr/lib/libacl.so</userinput><
|
|
<varlistentry id="setfacl">
|
|
<varlistentry id="setfacl">
|
|
<term><command>setfacl</command></term>
|
|
<term><command>setfacl</command></term>
|
|
<listitem>
|
|
<listitem>
|
|
- <para>Sets file access control lists</para>
|
|
|
|
|
|
+ <para>设定文件访问控制列表</para>
|
|
<indexterm zone="ch-system-acl setfacl">
|
|
<indexterm zone="ch-system-acl setfacl">
|
|
<primary sortas="b-setfacl">setfacl</primary>
|
|
<primary sortas="b-setfacl">setfacl</primary>
|
|
</indexterm>
|
|
</indexterm>
|
|
@@ -151,7 +149,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libacl.so) /usr/lib/libacl.so</userinput><
|
|
<varlistentry id="libacl">
|
|
<varlistentry id="libacl">
|
|
<term><filename class="libraryfile">libacl</filename></term>
|
|
<term><filename class="libraryfile">libacl</filename></term>
|
|
<listitem>
|
|
<listitem>
|
|
- <para>Contains the library functions for manipulating Access Control Lists</para>
|
|
|
|
|
|
+ <para>包含操作访问控制列表的库函数</para>
|
|
<indexterm zone="ch-system-acl libacl">
|
|
<indexterm zone="ch-system-acl libacl">
|
|
<primary sortas="c-libacl">libacl</primary>
|
|
<primary sortas="c-libacl">libacl</primary>
|
|
</indexterm>
|
|
</indexterm>
|