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.
This package is known to build and work properly using an LFS-7.3 platform.
Download (HTTP): http://download.savannah.gnu.org/releases/acl/acl-2.2.51.src.tar.gz
Download MD5 sum: 3fc0ce99dc5253bdcce4c9cd437bc267
Download size: 380 KB
Estimated disk space required: 5.5 MB
Estimated build time: 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/acl
Install acl by running the following commands:
sed -i -e 's|/@pkg_name@|&-@pkg_version@|' \
include/builddefs.in &&
INSTALL_USER=root \
INSTALL_GROUP=root \
./configure --prefix=/usr --libdir=/lib --libexecdir=/usr/lib &&
make
For meaningful results, the tests need to be carried out on a file system that supports extended attributes. It is also required that Coreutils is re-installed after acl is installed so that the extra acl bit displays correctly on a ls command.
Now, as the root user:
make install install-dev install-lib &&
chmod -v 0755 /lib/libacl.so.1.1.0 &&
rm -v /lib/libacl.{a,la,so} &&
ln -sfv ../../lib/libacl.so.1 /usr/lib/libacl.so &&
sed -i "s|libdir='/lib'|libdir='/usr/lib'|" /usr/lib/libacl.la &&
install -v -m644 doc/*.txt /usr/share/doc/acl-2.2.51
You should now re-install Coreutils and proceed to run the test suite.
There are three sets of tests that come with this package. Issue the following to execute all three: make tests root-tests ext-tests.
sed -i ... include/builddefs.in: This command modifies the documentation directory so that it is a versioned directory.
sed -i ... /usr/lib/libacl.la: This command corrects the location of the installed static library as referenced in the libtool archive.
There is no configuration to acl itself, but to get any use out of acl, a filesystem needs to support access control lists.
One way to achieve this is to add the acl option to an ext3
filesystem in the /etc/fstab file
as shown below:
# file system mount-point type options dump fsck # order /dev/sda1 / ext3 defaults,acl,user_xattr 0 2
Last updated on 2013-03-04 23:08:42 +0000