NAME
acl — virtual file system access control listsSYNOPSIS
#include <sys/param.h>#include <sys/vnode.h>
#include <sys/acl.h> In the kernel configuration file:
options UFS_ACL
DESCRIPTION
Access control lists, or ACLs, allow fine-grained specification of rights for vnodes representing files and directories. However, as there are a plethora of file systems with differing ACL semantics, the vnode interface is aware only of the syntax of ACLs, relying on the underlying file system to implement the details. Depending on the underlying file system, each file or directory may have zero or more ACLs associated with it, named using the type field of the appropriate vnode ACL calls: VOP_ACLCHECK(9), VOP_GETACL(9), and VOP_SETACL(9). Currently, each ACL is represented in-kernel by a fixed-size acl structure, defined as follows:struct acl { unsigned int acl_maxcnt; unsigned int acl_cnt; int acl_spare[4]; struct acl_entry acl_entry[ACL_MAX_ENTRIES]; };
ACL_MAX_ENTRIES
.
Each individual ACL entry is of the type
acl_entry_t, which is a structure with the
following members:
- acl_tag_t ae_tag
- The following is a list of definitions of ACL types to be
set in ae_tag:
Each POSIX.1e ACL must contain exactly one
ACL_USER_OBJ
, oneACL_GROUP_OBJ
, and oneACL_OTHER
. If any ofACL_USER
,ACL_GROUP
, orACL_OTHER
are present, then exactly oneACL_MASK
entry should be present. - uid_t ae_id
- The ID of user for whom this ACL describes access
permissions. For entries other than
ACL_USER
andACL_GROUP
, this field should be set toACL_UNDEFINED_ID
. - acl_perm_t ae_perm
- This field defines what kind of access the process matching
this ACL has for accessing the associated file. For POSIX.1e ACLs, the
following are valid:
ACL_EXECUTE
- The process may execute the associated file.
ACL_WRITE
- The process may write to the associated file.
ACL_READ
- The process may read from the associated file.
ACL_PERM_NONE
- The process has no read, write or execute permissions to the associated file.
ACL_READ_DATA
- The process may read from the associated file.
ACL_LIST_DIRECTORY
- Same as
ACL_READ_DATA
. ACL_WRITE_DATA
- The process may write to the associated file.
ACL_ADD_FILE
- Same as
ACL_ACL_WRITE_DATA
. ACL_APPEND_DATA
ACL_ADD_SUBDIRECTORY
- Same as
ACL_APPEND_DATA
. ACL_READ_NAMED_ATTRS
- Ignored.
ACL_WRITE_NAMED_ATTRS
- Ignored.
ACL_EXECUTE
- The process may execute the associated file.
ACL_DELETE_CHILD
ACL_READ_ATTRIBUTES
ACL_WRITE_ATTRIBUTES
ACL_DELETE
ACL_READ_ACL
ACL_WRITE_ACL
ACL_WRITE_OWNER
ACL_SYNCHRONIZE
- Ignored.
- acl_entry_type_t ae_entry_type
- This field defines the type of NFSv4 ACL entry. It is not used with POSIX.1e ACLs. The following values are valid:
- acl_flag_t ae_flags
- This field defines the inheritance flags of NFSv4 ACL
entry. It is not used with POSIX.1e ACLs. The following values are valid:
ACL_ENTRY_FILE_INHERIT
ACL_ENTRY_DIRECTORY_INHERIT
ACL_ENTRY_NO_PROPAGATE_INHERIT
ACL_ENTRY_INHERIT_ONLY
ACL_ENTRY_INHERITED
ACL_ENTRY_INHERITED
flag is set on an ACE that has been inherited from its parent. It may also be set programmatically, and is valid on both files and directories.
SEE ALSO
acl(3), vaccess(9), vaccess_acl_nfs4(9), vaccess_acl_posix1e(9), VFS(9), VOP_ACLCHECK(9), VOP_GETACL(9), VOP_SETACL(9)AUTHORS
This manual page was written by Robert Watson.September 4, 2015 | Debian |