Lines Matching full:acl

30 #include <sys/acl.h>
37 * of what "brand" ACL is: NFSv4, POSIX.1e or unknown. It happens
38 * automatically - for example, during acl_get_file(3) ACL gets
40 * ACL, if its brand is unknown it gets branded as NFSv4 if any of the
41 * NFSv4 permissions that are not valid for POSIX.1e ACL are set etc.
42 * Branding information is used for printing out the ACL (acl_to_text(3)),
44 * bits that are valid only for NFSv4 in ACL branded as POSIX.1e) etc.
58 * Return brand of an ACL.
61 _acl_brand(const acl_t acl) in _acl_brand() argument
64 return (acl->ats_brand); in _acl_brand()
75 * Return 1, iff branding ACL as "brand" is ok.
78 _acl_brand_may_be(const acl_t acl, int brand) in _acl_brand_may_be() argument
81 if (_acl_brand(acl) == ACL_BRAND_UNKNOWN) in _acl_brand_may_be()
84 if (_acl_brand(acl) == brand) in _acl_brand_may_be()
98 * Brand ACL as "brand".
101 _acl_brand_as(acl_t acl, int brand) in _acl_brand_as() argument
104 assert(_acl_brand_may_be(acl, brand)); in _acl_brand_as()
106 acl->ats_brand = brand; in _acl_brand_as()
117 _acl_type_not_valid_for_acl(const acl_t acl, acl_type_t type) in _acl_type_not_valid_for_acl() argument
120 switch (_acl_brand(acl)) { in _acl_type_not_valid_for_acl()
139 _acl_brand_from_type(acl_t acl, acl_type_t type) in _acl_brand_from_type() argument
144 _acl_brand_as(acl, ACL_BRAND_NFS4); in _acl_brand_from_type()
148 _acl_brand_as(acl, ACL_BRAND_POSIX); in _acl_brand_from_type()
157 acl_get_brand_np(acl_t acl, int *brand_p) in acl_get_brand_np() argument
160 if (acl == NULL || brand_p == NULL) { in acl_get_brand_np()
164 *brand_p = _acl_brand(acl); in acl_get_brand_np()