%general-entities; ]> libcap &libcap-version;
&libcap-url;
Libcap-&libcap-version; Libcap <para>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.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&libcap-ch6-sbu;</seg> <seg>&libcap-ch6-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Libcap Prevent a static library from being installed: sed -i '/install.*STALIBNAME/d' libcap/Makefile Compile the package: make This package does not come with a test suite. Install the package: make RAISE_SETFCAP=no lib=lib prefix=/usr install chmod -v 755 /usr/lib/libcap.so.&libcap-version; The meaning of the make option: RAISE_SETFCAP=no This parameter skips trying to use setcap on itself. This avoids an installation error if the kernel or file system does not support extended capabilities. lib=lib This parameter installs the library in $prefix/lib rather than $prefix/lib64 on x86_64. It has no effect on x86. The shared library needs to be moved to /lib, and as a result the .so file in /usr/lib will need to be recreated: mv -v /usr/lib/libcap.so.* /lib ln -sfv ../../lib/$(readlink /usr/lib/libcap.so) /usr/lib/libcap.so Installation of Libcap - 32-bit Clean previous build: make distclean Compile the package: make CC="gcc -m32 -march=i686" Install the package: make lib=lib32 prefix=$PWD/DESTDIR/usr -C libcap install cp -Rv DESTDIR/usr/lib32/* /usr/lib32 rm -rf DESTDIR Installation of Libcap - x32-bit Clean previous build: make distclean Compile the package: make CC="gcc -mx32" Install the package: make lib=libx32 prefix=$PWD/DESTDIR/usr -C libcap install cp -Rv DESTDIR/usr/libx32/* /usr/libx32 rm -rf DESTDIR Contents of Libcap Installed programs Installed library capsh, getcap, getpcaps, and setcap libcap.so Short Descriptions capsh A shell wrapper to explore and constrain capability support capsh getcap Examines file capabilities getcap getpcaps Displays the capabilities on the queried process(es) getpcaps setcap Sets file capabilities setcap libcap Contains the library functions for manipulating POSIX 1003.1e capabilities libcap