Lines Matching refs:acl
38 #include <sys/acl.h>
45 * of what "brand" ACL is: NFSv4, POSIX.1e or unknown. It happens
46 * automatically - for example, during acl_get_file(3) ACL gets
48 * ACL, if its brand is unknown it gets branded as NFSv4 if any of the
49 * NFSv4 permissions that are not valid for POSIX.1e ACL are set etc.
50 * Branding information is used for printing out the ACL (acl_to_text(3)),
52 * bits that are valid only for NFSv4 in ACL branded as POSIX.1e) etc.
66 * Return brand of an ACL.
69 _acl_brand(const acl_t acl)
72 return (acl->ats_brand);
83 * Return 1, iff branding ACL as "brand" is ok.
86 _acl_brand_may_be(const acl_t acl, int brand)
89 if (_acl_brand(acl) == ACL_BRAND_UNKNOWN)
92 if (_acl_brand(acl) == brand)
106 * Brand ACL as "brand".
109 _acl_brand_as(acl_t acl, int brand)
112 assert(_acl_brand_may_be(acl, brand));
114 acl->ats_brand = brand;
125 _acl_type_not_valid_for_acl(const acl_t acl, acl_type_t type)
128 switch (_acl_brand(acl)) {
147 _acl_brand_from_type(acl_t acl, acl_type_t type)
152 _acl_brand_as(acl, ACL_BRAND_NFS4);
156 _acl_brand_as(acl, ACL_BRAND_POSIX);
165 acl_get_brand_np(acl_t acl, int *brand_p)
168 if (acl == NULL || brand_p == NULL) {
172 *brand_p = _acl_brand(acl);