%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-fin-sbu;</seg> <seg>&libcap-fin-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Libcap Prevent static libraries from being installed: sed -i '/install -m.*STA/d' libcap/Makefile Compile the package: make prefix=/usr lib=lib The meaning of the make option: lib=lib This parameter sets the library directory to /usr/lib rather than /usr/lib64 on x86_64. It has no effect on x86. To test the results, issue: make test Install the package and make sure the essential libraries are in the correct directory: make prefix=/usr lib=lib install for libname in cap psx; do mv -v /usr/lib/lib${libname}.so.* /lib ln -sfv ../../lib/lib${libname}.so.2 /usr/lib/lib${libname}.so chmod -v 755 /lib/lib${libname}.so.&libcap-version; done Installation of Libcap - 32bit 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-lib-m32;/* &usr-lib-m32; sed -e "s|^libdir=.*|libdir=&usr-lib-m32;|" -i &usr-lib-m32;/pkgconfig/lib{cap,psx}.pc chmod -v 755 &usr-lib-m32;/libcap.so.&libcap-version; rm -rf DESTDIR Installation of Libcap - x32bit Clean previous build: make distclean Compile the package: make CC="gcc -mx32 -march=x86-64" Install the package: make lib=libx32 prefix=$PWD/DESTDIR/usr -C libcap install cp -Rv DESTDIR&usr-lib-mx32;/* &usr-lib-mx32; sed -e "s|^libdir=.*|libdir=&usr-lib-mx32;|" -i &usr-lib-mx32;/pkgconfig/lib{cap,psx}.pc chmod -v 755 &usr-lib-mx32;/libcap.so.&libcap-version; rm -rf DESTDIR Contents of Libcap Installed programs Installed library capsh, getcap, getpcaps, and setcap libcap.so and libpsx.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 libpsx Contains functions to support POSIX semantics for syscalls associated with the pthread library libpsx