The libcap package implements the user-space interfaces to the POSIX 1003.1e capabilities available in Linux kernels. These capabilities are a partitioning of the all powerful root privilege into a set of distinct privileges.
This package is known to build and work properly using an LFS-7.5 platform.
Download MD5 sum: d43ab9f680435a7fff35b4ace8d45b80
Download size: 62 KB
Estimated disk space required: 1.5 MB
Estimated build time: 0.1 SBU
Install libcap by running the following commands:
sed -i 's:LIBDIR:PAM_&:g' pam_cap/Makefile && make
This package does not come with a test suite.
If you want to disable installing the static library, use this sed:
sed -i '/install.*STALIBNAME/ s/^/#/' libcap/Makefile
Now, as the
make prefix=/usr \ SBINDIR=/sbin \ PAM_LIBDIR=/lib \ RAISE_SETFCAP=no install
Still as the
root user, clean up
some library locations and permissions:
chmod -v 755 /usr/lib/libcap.so && mv -v /usr/lib/libcap.so.* /lib && ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so
sed -i '...',
correct PAM module install location.
parameter skips trying to use setcap on itself. This avoids an installation
error if the kernel or file system do not support extended
Last updated on 2014-02-17 23:16:31 +0000