Lines Matching defs:acl
76 aclcnt = acl(filename, cntcmd, 0, NULL);
82 if (acl(filename, ACE_GETACL,
121 * if acl's aren't supported then
142 acl_info->acl_cnt = acl(fname, cntcmd, 0, NULL);
172 error = acl(fname, getcmd, acl_info->acl_cnt,
221 * return -1 on failure, otherwise the number of acl
244 * Set an ACL, translates acl to ace_t when appropriate.
271 * In the case of 0 we will then fail in either acl(2) or
287 error = acl(acl_inp->file,
366 * Take an acl array and build an acl_t.
369 acl_to_aclp(enum acl_type type, void *acl, int count)
378 aclp->acl_aclp = acl;
386 * off of the mode argument. After acl has been set owner/group
427 error = acl(file, SETACL, aclcnt, min_acl);
432 error = acl(file, ACE_SETACL, aclcnt, min_ace_acl);
475 * Find acl entries in acl that correspond to removeacl. Search
480 acl_removeentries(acl_t *acl, acl_t *removeacl, int start_slot, int flag)
492 if (acl == NULL || removeacl == NULL)
495 if (acl->acl_type != removeacl->acl_type)
498 if (acl->acl_type == ACLENT_T)
507 acl_entry = (char *)acl->acl_aclp +
508 (acl->acl_entry_size * start_slot);
515 if (acl->acl_cnt == (j + 1)) {
516 acl->acl_cnt--;
521 acl->acl_entry_size;
523 acl->acl_entry_size *
524 (acl->acl_cnt-- - (j + 1)));
534 acl_entry = ((char *)acl_entry + acl->acl_entry_size);
535 if (++j >= acl->acl_cnt) {
549 * number of acl entries in acl1 then they are appended. If the
550 * where argument is 2+ greater than the number of acl entries then