6.28. Libcap2-2.10

The Libcap2 package contains Posix Capabilities libraries and utilities.

User Notes: http://wiki.linuxfromscratch.org/hlfs/wiki/libcap2

6.28.1. Installation of Libcap2

The programs are statically linked by default. This is unnecessary:

sed 's/--static//' -i.orig progs/Makefile

Compile the package:

make

This package does not come with a test suite.

Install the package:

make install

6.28.2. Contents of Libcap2

Installed program: getcap, getpcaps, setcap

Short Descriptions

getcap

Examine file capabilities

getpcaps

Examine process capabilities

setcap

Set file capabilities