From 9baa1489b5ab46f257abe52890fce1289ba32c28 Mon Sep 17 00:00:00 2001 From: Krejzi Date: Sat, 18 May 2013 13:47:51 +0000 Subject: [PATCH] Added Acl for Systemd. git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10282 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- appendices/dependencies.xml | 46 +++++++++-- chapter01/changelog.xml | 14 ++++ chapter01/whatsnew.xml | 4 + chapter03/packages.xml | 9 +++ chapter06/acl.xml | 147 ++++++++++++++++++++++++++++++++++++ chapter06/attr.xml | 6 +- chapter06/chapter06.xml | 1 + packages.ent | 8 ++ prologue/why.xml | 9 +++ 9 files changed, 236 insertions(+), 8 deletions(-) create mode 100644 chapter06/acl.xml diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml index 526932573..07a8326b0 100644 --- a/appendices/dependencies.xml +++ b/appendices/dependencies.xml @@ -37,15 +37,15 @@ the LFS book and then go back an rebuild the LFS package. In several cases, reinstallation is addressed in BLFS. - - attr + + acl &dependencies; - Bash, Coreutils, Gettext, Grep, M4, Make, Perl, Sed, and - Texinfo + Attr, Bash, Binutils, Coreutils, GCC, Gettext, Grep, M4, Make, + Perl, Sed, and Texinfo @@ -53,7 +53,43 @@ &testsuites; - Automake, Diffutils, Findutils, GCC, and Libtool + Automake, Diffutils, Findutils, and Libtool + + + + + &before; + + + Systemd + + + + + &external; + + + None + + + + + attr + + + &dependencies; + + + Bash, Binutils, Coreutils, GCC, Gettext, Grep, M4, Make, + Perl, Sed, and Texinfo + + + + + &testsuites; + + + Automake, Diffutils, Findutils, and Libtool diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index e8c9196a6..14fabb10d 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -35,6 +35,20 @@ --> + + 2013-05-18 + + + [krejzi] - Added Acl package for Systemd (setfacl). + + + [krejzi] - Add temporary libdbus package to satisfy + circular depdendency between Systemd and D-Bus. + + + + + 2013-05-12 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 23fdb0771..11b2ad8f3 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -226,6 +226,10 @@ Added: + + Acl-&acl-version; + + Attr-&attr-version; diff --git a/chapter03/packages.xml b/chapter03/packages.xml index e078e1533..7ce0026df 100644 --- a/chapter03/packages.xml +++ b/chapter03/packages.xml @@ -14,6 +14,15 @@ + + Acl (&acl-version;) - &acl-size;: + + Home page: + Download: + MD5 sum: &acl-md5; + + + Attr (&attr-version;) - &attr-size;: diff --git a/chapter06/acl.xml b/chapter06/acl.xml new file mode 100644 index 000000000..196e8bd79 --- /dev/null +++ b/chapter06/acl.xml @@ -0,0 +1,147 @@ + + + %general-entities; +]> + + + + + + acl + &acl-version; +
&acl-url;
+
+ + Acl-&acl-version; + + + Acl + + + + + + <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> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + + <seglistitem> + <seg>&acl-ch6-sbu;</seg> + <seg>&acl-ch6-du;</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>Installation of Acl + + Modify the documentation directory so that it is a versioned + directory: + +sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in + + Prepare Acl for compilation: + +./configure --prefix=/usr --libdir=/lib --libexecdir=/usr/lib + + Compile the package: + +make + + The Acl tests need to be run on a filesystem that supports access + controls. To test the results, issue: + +make -k tests root-tests + + Install the package: + +make install install-dev install-lib +chmod -v 0755 /lib/libacl.so.1.1.0 + + Remove static library and libtool archive from + /lib, they exist in + /usr/lib: + +rm -v /lib/libacl.{a,la,so} + + Change default location for the libtool archive and recreate + symlink to shared library since it points to removed file: + +sed -i 's@/lib@/usr/lib@' /usr/lib/libacl.la +ln -sfv ../../lib/libacl.so.1 /usr/lib/libacl.so + + + + + Contents of Acl + + + Installed programs + Installed library + Installed directories + + + chacl, getfacl, and setacl + libacl.{so,a} + /usr/include/acl and /usr/share/doc/acl-&acl-version; + + + + + Short Descriptions + + + + + chacl + + Changes the access control list of a file + or directory. + + chacl + + + + + + getfacl + + Gets file access control lists. + + getfacl + + + + + + setacl + + Sets file access control lists. + + setacl + + + + + + libacl.{so,a} + + Contains the Acl API functions. + + libacl.{so,a} + + + + + + + + +
diff --git a/chapter06/attr.xml b/chapter06/attr.xml index 584591fff..8fe5d1f3d 100644 --- a/chapter06/attr.xml +++ b/chapter06/attr.xml @@ -54,8 +54,8 @@ make - The attr tests need to be run on a filesystem that supports extended - attributes. To test the results, issue: + The Attr tests need to be run on a filesystem that supports extended + attributes. To test the results, issue: make -k tests root-tests @@ -132,7 +132,7 @@ ln -sfv ../../lib/libattr.so.1 /usr/lib/libattr.so libattr.{so,a} - Contains the attr API functions. + Contains the Attr API functions. libattr.{so,a} diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index c0dfd87e3..40bc799ec 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -37,6 +37,7 @@ + diff --git a/packages.ent b/packages.ent index 0d01b9ffa..255084a68 100644 --- a/packages.ent +++ b/packages.ent @@ -15,6 +15,14 @@ + + + + + + + + diff --git a/prologue/why.xml b/prologue/why.xml index f88588b2e..77e889446 100644 --- a/prologue/why.xml +++ b/prologue/why.xml @@ -20,6 +20,15 @@ + + Acl + + This package contains programs to administer Access Control + Lists, which are used to define more fine-grained discretionary access + rights for files and directories. It is required by Systemd + and can be used by Coreutils. + + Attr