FreeBSD kernel kern code
subr_acl_posix1e.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/systm.h>
#include <sys/mount.h>
#include <sys/priv.h>
#include <sys/vnode.h>
#include <sys/errno.h>
#include <sys/stat.h>
#include <sys/acl.h>
Include dependency graph for subr_acl_posix1e.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
int vaccess_acl_posix1e (enum vtype type, uid_t file_uid, gid_t file_gid, struct acl *acl, accmode_t accmode, struct ucred *cred)
 
acl_perm_t acl_posix1e_mode_to_perm (acl_tag_t tag, mode_t mode)
 
struct acl_entry acl_posix1e_mode_to_entry (acl_tag_t tag, uid_t uid, gid_t gid, mode_t mode)
 
mode_t acl_posix1e_perms_to_mode (struct acl_entry *acl_user_obj_entry, struct acl_entry *acl_group_obj_entry, struct acl_entry *acl_other_entry)
 
mode_t acl_posix1e_acl_to_mode (struct acl *acl)
 
int acl_posix1e_check (struct acl *acl)
 
mode_t acl_posix1e_newfilemode (mode_t cmode, struct acl *dacl)
 
static int acl_posix1e_modload (module_t mod, int what, void *arg)
 
 DECLARE_MODULE (acl_posix1e, acl_posix1e_mod, SI_SUB_VFS, SI_ORDER_FIRST)
 
 MODULE_VERSION (acl_posix1e, 1)
 

Variables

static moduledata_t acl_posix1e_mod
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ acl_posix1e_acl_to_mode()

mode_t acl_posix1e_acl_to_mode ( struct acl *  acl)

Definition at line 475 of file subr_acl_posix1e.c.

References acl_posix1e_perms_to_mode(), and panic().

Referenced by acl_posix1e_newfilemode(), and vaccess_acl_posix1e().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ acl_posix1e_check()

int acl_posix1e_check ( struct acl *  acl)

Definition at line 533 of file subr_acl_posix1e.c.

◆ acl_posix1e_mode_to_entry()

struct acl_entry acl_posix1e_mode_to_entry ( acl_tag_t  tag,
uid_t  uid,
gid_t  gid,
mode_t  mode 
)

Definition at line 408 of file subr_acl_posix1e.c.

References acl_posix1e_mode_to_perm(), mode, and printf().

Here is the call graph for this function:

◆ acl_posix1e_mode_to_perm()

acl_perm_t acl_posix1e_mode_to_perm ( acl_tag_t  tag,
mode_t  mode 
)

Definition at line 365 of file subr_acl_posix1e.c.

References mode, and printf().

Referenced by acl_posix1e_mode_to_entry().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ acl_posix1e_modload()

static int acl_posix1e_modload ( module_t  mod,
int  what,
void *  arg 
)
static

Definition at line 644 of file subr_acl_posix1e.c.

◆ acl_posix1e_newfilemode()

mode_t acl_posix1e_newfilemode ( mode_t  cmode,
struct acl *  dacl 
)

Definition at line 626 of file subr_acl_posix1e.c.

References acl_posix1e_acl_to_mode(), and mode.

Here is the call graph for this function:

◆ acl_posix1e_perms_to_mode()

mode_t acl_posix1e_perms_to_mode ( struct acl_entry *  acl_user_obj_entry,
struct acl_entry *  acl_group_obj_entry,
struct acl_entry *  acl_other_entry 
)

Definition at line 441 of file subr_acl_posix1e.c.

References mode.

Referenced by acl_posix1e_acl_to_mode().

Here is the caller graph for this function:

◆ DECLARE_MODULE()

DECLARE_MODULE ( acl_posix1e  ,
acl_posix1e_mod  ,
SI_SUB_VFS  ,
SI_ORDER_FIRST   
)

◆ MODULE_VERSION()

MODULE_VERSION ( acl_posix1e  ,
 
)

◆ vaccess_acl_posix1e()

int vaccess_acl_posix1e ( enum vtype  type,
uid_t  file_uid,
gid_t  file_gid,
struct acl *  acl,
accmode_t  accmode,
struct ucred *  cred 
)

Definition at line 59 of file subr_acl_posix1e.c.

References accmode, acl_posix1e_acl_to_mode(), groupmember(), printf(), priv_check_cred(), and type.

Here is the call graph for this function:

Variable Documentation

◆ acl_posix1e_mod

moduledata_t acl_posix1e_mod
static
Initial value:
= {
"acl_posix1e",
NULL
}
static int acl_posix1e_modload(module_t mod, int what, void *arg)

Definition at line 672 of file subr_acl_posix1e.c.