Home | History | Annotate | Download | only in kern

Lines Matching refs:acl

33  * ACL support routines specific to POSIX.1e access control lists.  These are
53 #include <sys/acl.h>
100 * Given inode information (uid, gid, mode), return an acl entry of the
134 * Utility function to generate a file mode given appropriate ACL entries.
167 * ACL. Note that if the ACL is improperly formed, this may result in a
171 acl_posix1e_acl_to_mode(struct acl *acl)
177 * Find the ACL entries relevant to a POSIX permission mode.
180 for (i = 0; i < acl->acl_cnt; i++) {
181 switch (acl->acl_entry[i].ae_tag) {
183 acl_user_obj = &acl->acl_entry[i];
187 acl_group_obj = &acl->acl_entry[i];
191 acl_other = &acl->acl_entry[i];
195 acl_mask = &acl->acl_entry[i];
224 * Perform a syntactic check of the ACL, sufficient to allow an implementing
226 * ACL properties.
229 acl_posix1e_check(struct acl *acl)
254 if (acl->acl_cnt > ACL_MAX_ENTRIES)
256 for (i = 0; i < acl->acl_cnt; i++) {
257 struct acl_entry *ae = &acl->acl_entry[i];
302 if ((acl->acl_entry[i].ae_perm | ACL_PERM_BITS) !=
316 * Given a requested mode for a new object, and a default ACL, combine the
318 * intended to be affected by the POSIX.1e ACL. Eventually, this might also
323 acl_posix1e_newfilemode(mode_t cmode, struct acl *dacl)
330 * set in *both* the ACL and the requested creation mode for it to
331 * appear in the resulting mode/ACL. First clear any possibly