Lines Matching defs:acl

35 #include <acl/acl_common.h>
1273 ace_list_t *normacl = NULL, *dfacl = NULL, *acl;
1329 /* see if this should be a regular or default acl */
1342 acl = dfacl;
1344 acl = normacl;
1348 if (acl->state > ace_user_obj) {
1352 acl->state = ace_user_obj;
1353 acl->seen |= USER_OBJ;
1354 vals = &acl->user_obj;
1355 vals->aent_type = USER_OBJ | acl->dfacl_flag;
1357 acl->state = ace_other_obj;
1358 acl->seen |= OTHER_OBJ;
1359 vals = &acl->other_obj;
1360 vals->aent_type = OTHER_OBJ | acl->dfacl_flag;
1362 if (acl->state > ace_group) {
1367 acl->seen |= GROUP_OBJ;
1368 vals = &acl->group_obj;
1369 vals->aent_type = GROUP_OBJ | acl->dfacl_flag;
1371 acl->seen |= GROUP;
1372 vals = acevals_find(acep, &acl->group,
1373 &acl->numgroups);
1378 vals->aent_type = GROUP | acl->dfacl_flag;
1380 acl->state = ace_group;
1382 if (acl->state > ace_user) {
1386 acl->state = ace_user;
1387 acl->seen |= USER;
1388 vals = acevals_find(acep, &acl->user,
1389 &acl->numusers);
1394 vals->aent_type = USER | acl->dfacl_flag;
1397 if (!(acl->state > ace_unused)) {
1416 if ((acl->state != ace_user) &&
1417 (acl->state != ace_group)) {
1422 if (! acl->hasmask) {
1423 acl->hasmask = 1;
1424 acl->acl_mask = vals->denied;
1426 } else if (acl->acl_mask != vals->denied) {
1543 * replace old acl with newly translated acl
1567 #define SET_ACE(acl, index, who, mask, type, flags) { \
1568 acl[0][index].a_who = (uint32_t)who; \
1569 acl[0][index].a_type = type; \
1570 acl[0][index].a_flags = flags; \
1571 acl[0][index++].a_access_mask = mask; \
1637 acl_trivial_create(mode_t mode, boolean_t isdir, ace_t **acl, int *count)
1653 if ((error = cacl_malloc((void **)acl, *count * sizeof (ace_t))) != 0)
1657 SET_ACE(acl, index, -1, masks.allow0,
1661 SET_ACE(acl, index, -1, masks.deny1,
1665 SET_ACE(acl, index, -1, masks.deny2,
1669 SET_ACE(acl, index, -1, masks.owner, ACE_ACCESS_ALLOWED_ACE_TYPE,
1671 SET_ACE(acl, index, -1, masks.group, ACE_ACCESS_ALLOWED_ACE_TYPE,
1673 SET_ACE(acl, index, -1, masks.everyone, ACE_ACCESS_ALLOWED_ACE_TYPE,
1681 * determine whether an ace_t acl is trivial
1683 * Trivialness implies that the acl is composed of only