PR_GET_KEEPCAPS
get the state of the "keep capabilities" flag
- Provided by: manpages-dev (Version: 6.17-1)
- Source: manpages
- Report a bug
get the state of the "keep capabilities" flag
Standard C library (libc, -lc)
#include <linux/prctl.h> /* Definition of PR_* constants */ #include <sys/prctl.h>
int prctl(PR_GET_KEEPCAPS);
Return the current state of the calling thread's "keep capabilities" flag. See capabilities(7) for a description of this flag.
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 2.2.18.