Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
seccomp.c File Reference
#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)
 

Function Documentation

int __secure_computing ( int  this_syscall)

Definition at line 375 of file seccomp.c.

long prctl_get_seccomp ( void  )

Definition at line 455 of file seccomp.c.

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.

Definition at line 474 of file seccomp.c.