PR_SET_SECUREBITS2const
Set the "securebits" flags of the calling thread
Usage
#include <linux/prctl.h> /* Definition of PR_* constants */ #include <sys/prctl.h>
int prctl(PR_SET_SECUREBITS, unsigned long flags);
Library
Standard C library (libc, -lc)
Overview
Set the "securebits" flags of the calling thread to the value supplied in flags. See capabilities(7).
Return value
On success, 0 is returned. On error, -1 is returned, and errno is set to indicate the error.
Errors
- EINVAL
-
flags is not a valid value.
- EPERM
-
The caller does not have the
CAP_SETPCAPcapability, or tried to unset a "locked" flag, or tried to set a flag whose corresponding locked flag was set (see capabilities(7)).
Releases
2 releases since Debian 13 (Trixie); the text changed 1 time.