Linux Kernel
3.7.1
|
#include <linux/atomic.h>
#include <linux/audit.h>
#include <linux/compat.h>
#include <linux/sched.h>
#include <linux/seccomp.h>
Go to the source code of this file.
Functions | |
int | __secure_computing (int this_syscall) |
long | prctl_get_seccomp (void) |
long | prctl_set_seccomp (unsigned long seccomp_mode, char __user *filter) |
prctl_set_seccomp: configures current->seccomp.mode : requested mode to use : optional struct sock_fprog for use with SECCOMP_MODE_FILTER
This function may be called repeatedly with a of SECCOMP_MODE_FILTER to install additional filters. Every filter successfully installed will be evaluated (in reverse order) for each system call the task makes.
Once current->seccomp.mode is non-zero, it may not be changed.
Returns 0 on success or -EINVAL on failure.