PR_CAP_AMBIENT - read or change the ambient capability set of the calling thread
Contents
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:
PR_CAP_AMBIENT_RAISEPR_CAP_AMBIENT_LOWERPR_CAP_AMBIENT_IS_SETPR_CAP_AMBIENT_CLEAR_ALLErrors
EINVALop is not a valid value.
History
Linux 4.3.
Library
Standard C library (libc, -lc)
Name
PR_CAP_AMBIENT - read or change the ambient capability set of the calling thread
Return Value
On success, a nonnegative value is returned. On error, -1 is returned, and errno is set to indicate the
error.
See Also
prctl(2), PR_CAP_AMBIENT_RAISE(2const), PR_CAP_AMBIENT_LOWER(2const), PR_CAP_AMBIENT_IS_SET(2const), PR_CAP_AMBIENT_CLEAR_ALL(2const), libcap(3), cap_get_ambient(3), cap_set_ambient(3), cap_reset_ambient(3) Linux man-pages 6.9.1 2024-06-01 PR_CAP_AMBIENT(2const)
Standards
Linux.
Synopsis
#include<linux/prctl.h> /* Definition of PR_* constants */
#include<sys/prctl.h>intprctl(PR_CAP_AMBIENT,longop,...);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).
