Lines Matching defs:acls
26 * acls.c
50 static int acl(const char *name, int opcode, int count, aclent_t *acls)
74 static aclent_t acls[MAX_ACL_ENTRIES];
77 count = acl(name, GETACL, MAX_ACL_ENTRIES, acls);
87 switch (acls[i].a_type) {
101 /* allocate an array to hold the acls */
106 /* copy the acls into the new list */
108 list[i].a_type = acls[i].a_type;
109 list[i].a_id = acls[i].a_id;
110 list[i].a_perm = acls[i].a_perm;
173 aclent_t acls[4], *list;
177 acls[0].a_type = USER_OBJ;
178 acls[0].a_id = fp->f_uid;
179 acls[0].a_perm = (fp->f_mode >> 6) & 7;
181 acls[1].a_type = GROUP_OBJ;
182 acls[1].a_id = fp->f_gid;
183 acls[1].a_perm = (fp->f_mode >> 3) & 7;
185 acls[2].a_type = CLASS_OBJ;
186 acls[2].a_id = 0;
187 acls[2].a_perm = (fp->f_mode >> 6) & 7;
189 acls[3].a_type = OTHER_OBJ;
190 acls[3].a_id = 0;
191 acls[3].a_perm = fp->f_mode & 7;
194 list = acls;