Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/acl.h
Show First 20 Lines • Show All 274 Lines • ▼ Show 20 Lines | |||||
* POSIX.1e ACLs are capable of expressing the read, write, and execute bits | * POSIX.1e ACLs are capable of expressing the read, write, and execute bits | ||||
* of the POSIX mode field. We provide two masks: one that defines the bits | * of the POSIX mode field. We provide two masks: one that defines the bits | ||||
* the ACL will replace in the mode, and the other that defines the bits that | * the ACL will replace in the mode, and the other that defines the bits that | ||||
* must be preseved when an ACL is updating a mode. | * must be preseved when an ACL is updating a mode. | ||||
*/ | */ | ||||
#define ACL_OVERRIDE_MASK (S_IRWXU | S_IRWXG | S_IRWXO) | #define ACL_OVERRIDE_MASK (S_IRWXU | S_IRWXG | S_IRWXO) | ||||
#define ACL_PRESERVE_MASK (~ACL_OVERRIDE_MASK) | #define ACL_PRESERVE_MASK (~ACL_OVERRIDE_MASK) | ||||
#ifdef _KERNEL | #if defined(_KERNEL) || defined(_ACL_PRIVATE) | ||||
/* | /* | ||||
* Filesystem-independent code to move back and forth between POSIX mode and | * Filesystem-independent code to move back and forth between POSIX mode and | ||||
* POSIX.1e ACL representations. | * POSIX.1e ACL representations. | ||||
*/ | */ | ||||
acl_perm_t acl_posix1e_mode_to_perm(acl_tag_t tag, mode_t mode); | 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, | struct acl_entry acl_posix1e_mode_to_entry(acl_tag_t tag, uid_t uid, | ||||
gid_t gid, mode_t mode); | gid_t gid, mode_t mode); | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |