FreeBSD kernel kern code
sys_capability.c File Reference
#include <sys/cdefs.h>
#include "opt_capsicum.h"
#include "opt_ktrace.h"
#include <sys/param.h>
#include <sys/capsicum.h>
#include <sys/file.h>
#include <sys/filedesc.h>
#include <sys/kernel.h>
#include <sys/limits.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/proc.h>
#include <sys/syscallsubr.h>
#include <sys/sysproto.h>
#include <sys/sysctl.h>
#include <sys/systm.h>
#include <sys/ucred.h>
#include <sys/uio.h>
#include <sys/ktrace.h>
#include <security/audit/audit.h>
#include <vm/uma.h>
#include <vm/vm.h>
Include dependency graph for sys_capability.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
 SYSCTL_BOOL (_kern, OID_AUTO, trap_enotcap, CTLFLAG_RWTUN, &trap_enotcap, 0, "Deliver SIGTRAP on ENOTCAPABLE")
 
int sys_cap_enter (struct thread *td, struct cap_enter_args *uap)
 
int sys_cap_getmode (struct thread *td, struct cap_getmode_args *uap)
 
int sys_cap_rights_limit (struct thread *td, struct cap_rights_limit_args *uap)
 
int sys___cap_rights_get (struct thread *td, struct __cap_rights_get_args *uap)
 
int sys_cap_ioctls_limit (struct thread *td, struct cap_ioctls_limit_args *uap)
 
int sys_cap_ioctls_get (struct thread *td, struct cap_ioctls_get_args *uap)
 
int sys_cap_fcntls_limit (struct thread *td, struct cap_fcntls_limit_args *uap)
 
int sys_cap_fcntls_get (struct thread *td, struct cap_fcntls_get_args *uap)
 

Variables

bool __read_frequently trap_enotcap
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ sys___cap_rights_get()

int sys___cap_rights_get ( struct thread *  td,
struct __cap_rights_get_args *  uap 
)

Definition at line 655 of file sys_capability.c.

◆ sys_cap_enter()

int sys_cap_enter ( struct thread *  td,
struct cap_enter_args *  uap 
)

Definition at line 136 of file sys_capability.c.

◆ sys_cap_fcntls_get()

int sys_cap_fcntls_get ( struct thread *  td,
struct cap_fcntls_get_args *  uap 
)

Definition at line 683 of file sys_capability.c.

◆ sys_cap_fcntls_limit()

int sys_cap_fcntls_limit ( struct thread *  td,
struct cap_fcntls_limit_args *  uap 
)

Definition at line 676 of file sys_capability.c.

◆ sys_cap_getmode()

int sys_cap_getmode ( struct thread *  td,
struct cap_getmode_args *  uap 
)

Definition at line 143 of file sys_capability.c.

◆ sys_cap_ioctls_get()

int sys_cap_ioctls_get ( struct thread *  td,
struct cap_ioctls_get_args *  uap 
)

Definition at line 669 of file sys_capability.c.

◆ sys_cap_ioctls_limit()

int sys_cap_ioctls_limit ( struct thread *  td,
struct cap_ioctls_limit_args *  uap 
)

Definition at line 662 of file sys_capability.c.

◆ sys_cap_rights_limit()

int sys_cap_rights_limit ( struct thread *  td,
struct cap_rights_limit_args *  uap 
)

Definition at line 648 of file sys_capability.c.

◆ SYSCTL_BOOL()

SYSCTL_BOOL ( _kern  ,
OID_AUTO  ,
trap_enotcap  ,
CTLFLAG_RWTUN  ,
trap_enotcap,
,
"Deliver SIGTRAP on ENOTCAPABLE"   
)

Variable Documentation

◆ trap_enotcap

bool __read_frequently trap_enotcap

Definition at line 88 of file sys_capability.c.

Referenced by syscallret().