Lines Matching refs:acl
23 #include "acl-util.h"
29 #include "logind-acl.h"
35 static int flush_acl(acl_t acl) {
40 assert(acl);
42 for (found = acl_get_entry(acl, ACL_FIRST_ENTRY, &i);
44 found = acl_get_entry(acl, ACL_NEXT_ENTRY, &i)) {
54 if (acl_delete_entry(acl, i) < 0)
71 acl_t acl;
77 acl = acl_get_file(path, ACL_TYPE_ACCESS);
78 if (!acl)
83 r = flush_acl(acl);
92 r = acl_find_uid(acl, old_uid, &entry);
97 if (acl_delete_entry(acl, entry) < 0) {
111 r = acl_find_uid(acl, new_uid, &entry);
116 if (acl_create_entry(&acl, &entry) < 0) {
159 if (acl_calc_mask(&acl) < 0) {
164 if (acl_set_file(path, ACL_TYPE_ACCESS, acl) < 0) {
172 acl_free(acl);