$manlookup

PR_CAP_AMBIENT

(2const)

read or change the ambient capability set of the calling thread

System callsmanpages-dev 6.9.1-1
#include <linux/prctl.h> /* Definition of PR_* constants */ #include <sys/prctl.h> int prctl(PR_CAP_AMBIENT, long op, ...);

LIBRARY

Standard C library (libc, -lc)

DESCRIPTION

Reads or changes the ambient capability set of the calling thread, according to the value of op, which must be one of the following:

RETURN VALUE

On success, a nonnegative value is returned. On error, -1 is returned, and errno is set to indicate the error.

ERRORS

op is not a valid value.

VERSIONS

Higher-level interfaces layered on top of the above operations are provided in the libcap(3) library in the form of cap_get_ambient(3), cap_set_ambient(3), and cap_reset_ambient(3).

STANDARDS

Linux.

HISTORY

Linux 4.3.

See also