FreeBSD kernel kern code
sys_capability.c File Reference
#include "opt_capsicum.h"
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/capability.h>
#include <sys/file.h>
#include <sys/filedesc.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/proc.h>
#include <sys/sysproto.h>
#include <sys/sysctl.h>
#include <sys/systm.h>
#include <sys/ucred.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 ("$BSDSUniX$")
 
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_new (struct thread *td, struct cap_new_args *uap)
 
int sys_cap_getrights (struct thread *td, struct cap_getrights_args *uap)
 
int cap_funwrap (struct file *fp_cap, cap_rights_t rights, struct file **fpp)
 
int cap_funwrap_mmap (struct file *fp_cap, cap_rights_t rights, u_char *maxprotp, struct file **fpp)
 

Function Documentation

__FBSDID ( "$BSDSUniX$"  )
int cap_funwrap ( struct file *  fp_cap,
cap_rights_t  rights,
struct file **  fpp 
)

Definition at line 528 of file sys_capability.c.

Referenced by _fget(), closef(), fdunwrap(), getselfd_cap(), getsock_cap(), getvnode(), kern_close(), kern_kmq_notify(), kern_proc_filedesc_out(), pollrescan(), pollscan(), and ttyhook_register().

Here is the caller graph for this function:

int cap_funwrap_mmap ( struct file *  fp_cap,
cap_rights_t  rights,
u_char *  maxprotp,
struct file **  fpp 
)

Definition at line 539 of file sys_capability.c.

Referenced by _fget().

Here is the caller graph for this function:

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

Definition at line 120 of file sys_capability.c.

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

Definition at line 127 of file sys_capability.c.

int sys_cap_getrights ( struct thread *  td,
struct cap_getrights_args *  uap 
)

Definition at line 521 of file sys_capability.c.

int sys_cap_new ( struct thread *  td,
struct cap_new_args *  uap 
)

Definition at line 514 of file sys_capability.c.