| PR_SET_SECCOMP(2const) | PR_SET_SECCOMP(2const) |
PR_SET_SECCOMP - set the secure computing mode
Standard C library (libc, -lc)
#include <linux/prctl.h> /* Definition of PR_* constants */ #include <sys/prctl.h>
[[deprecated]] int prctl(PR_SET_SECCOMP, long mode, ...);
[[deprecated]]
int prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT);
[[deprecated]]
int prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
struct sock_fprog *filter);
Set the secure computing (seccomp) mode for the calling thread, to limit the available system calls. The more recent seccomp(2) system call provides a superset of the functionality of PR_SET_SECCOMP, and is the preferred interface for new applications.
The seccomp mode is selected via mode. The seccomp constants are defined in <linux/seccomp.h>. The following values can be specified:
On success, 0 is returned. On error, -1 is returned, and errno is set to indicate the error.
Linux.
Linux 2.6.23.
| 2024-06-02 | Linux man-pages 6.9.1 |