10.46. Libcap-2.24 64 Bit

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

10.46.1. Installation of Libcap

Compile the package:

make CC="gcc ${BUILD64}"

This package does not come with a test suite.

Install the package:

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

10.46.2. Contents of Libcap

Installed programs: capsh, getcap, getpcaps, setcap
Installed libraries: libcap.[a,so]

Short Descriptions

capsh

Capability support and use can be explored and constrained with this tool

getcap

Examines file capabilities

getpcaps

Displays the capabilities on the queried process(es)

setcap

Sets file capabilities

libcap

Library for setting and clearing POSIX.1e capabilities