| PR_CAP_AMBIENT(2const) | PR_CAP_AMBIENT(2const) |
PR_CAP_AMBIENT - read or change the ambient capability set of the calling thread
Standard C library (libc, -lc)
#include <linux/prctl.h> /* Definition of PR_* constants */ #include <sys/prctl.h>
int prctl(PR_CAP_AMBIENT, long op, ...);
Reads or changes the ambient capability set of the calling thread, according to the value of op, which must be one of the following:
On success, a nonnegative value is returned. On error, -1 is returned, and errno is set to indicate the error.
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).
Linux.
Linux 4.3.
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)
| 2024-06-01 | Linux man-pages 6.9.1 |