FreeBSD kernel kern code
|
#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>
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 |
__FBSDID | ( | "$FreeBSD$" | ) |
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().
int acl_posix1e_check | ( | struct acl * | acl | ) |
Definition at line 533 of file subr_acl_posix1e.c.
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().
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().
|
static |
Definition at line 644 of file subr_acl_posix1e.c.
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.
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().
DECLARE_MODULE | ( | acl_posix1e | , |
acl_posix1e_mod | , | ||
SI_SUB_VFS | , | ||
SI_ORDER_FIRST | |||
) |
MODULE_VERSION | ( | acl_posix1e | , |
1 | |||
) |
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.
|
static |
Definition at line 672 of file subr_acl_posix1e.c.