PR_CAP_AMBIENT_IS_SET
read the ambient capability set of the calling thread
- Provided by: manpages-dev (Version: 6.17-1)
- Source: manpages
- Report a bug
read 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, PR_CAP_AMBIENT_IS_SET, long cap, 0L, 0L);
This call returns 1 if the capability in cap is in the ambient capability set and 0 if it is not.
On success, this call returns the boolean value described above. On error, -1 is returned, and errno is set to indicate the error.
Linux.
Linux 4.3.