PR_GET_KEEPCAPS2const
Get the state of the "keep capabilities" flag
Usage
#include <linux/prctl.h> /* Definition of PR_* constants */ #include <sys/prctl.h>
int prctl(PR_GET_KEEPCAPS);
Library
Standard C library (libc, -lc)
Overview
Return the current state of the calling thread's "keep capabilities" flag. See capabilities(7) for a description of this flag.
Return value
On success, this call returns the boolean value described above. On error, -1 is returned, and errno is set to indicate the error.
Releases
2 releases since Debian 13 (Trixie); the text changed 1 time.