Lines Matching refs:acl
25 acl_t acl; in get_acl() local
37 acl = acl_get_file(FORMAT_PROC_FD_PATH(child_fd), type); in get_acl()
39 acl = acl_get_fd(fd); in get_acl()
41 acl = acl_get_file(FORMAT_PROC_FD_PATH(fd), type); in get_acl()
42 if (!acl) in get_acl()
45 *ret = acl; in get_acl()
49 static int set_acl(int fd, const char *name, acl_type_t type, acl_t acl) { in set_acl() argument
53 assert(acl); in set_acl()
62 r = acl_set_file(FORMAT_PROC_FD_PATH(child_fd), type, acl); in set_acl()
64 r = acl_set_fd(fd, acl); in set_acl()
66 r = acl_set_file(FORMAT_PROC_FD_PATH(fd), type, acl); in set_acl()
73 static int shift_acl(acl_t acl, uid_t shift, acl_t *ret) { in shift_acl() argument
78 assert(acl); in shift_acl()
81 r = acl_get_entry(acl, ACL_FIRST_ENTRY, &i); in shift_acl()
113 n = acl_entries(acl); in shift_acl()
122 r = acl_get_entry(acl, ACL_FIRST_ENTRY, &i); in shift_acl()
143 r = acl_get_entry(acl, ACL_NEXT_ENTRY, &i); in shift_acl()
154 _cleanup_(acl_freep) acl_t acl = NULL, shifted = NULL; in patch_acls()
165 r = get_acl(fd, name, ACL_TYPE_ACCESS, &acl); in patch_acls()
171 r = shift_acl(acl, shift, &shifted); in patch_acls()
183 acl_free(acl); in patch_acls()
186 acl = shifted = NULL; in patch_acls()
188 r = get_acl(fd, name, ACL_TYPE_DEFAULT, &acl); in patch_acls()
192 r = shift_acl(acl, shift, &shifted); in patch_acls()