10.45. Libcap-2.24 32 Bit Libraries

Libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities.

10.45.1. Installation of Libcap

Compile the package:

make CC="gcc ${BUILD32}"

This package does not come with a test suite.

Install the package:

make RAISE_SETFCAP=no lib=lib install
chmod -v 755 /lib/libcap.so.2.24
ln -sfv ../../lib/$(readlink /lib/libcap.so) /usr/lib/libcap.so
rm -v /lib/libcap.so
mv -v /lib/libcap.a /usr/lib

The meaning of the make option:

RAISE_SETFCAP=no

This prevents setcap from being run on itself, which will fail if the kernel or file system does not support extended capabilities.

Details on this package are located in Section 10.46.2, “Contents of Libcap.”