Home
last modified time | relevance | path

Searched refs:acl (Results 1 – 15 of 15) sorted by relevance

/systemd-251/src/shared/
Ddevnode-acl.c19 static int flush_acl(acl_t acl) { in flush_acl() argument
24 assert(acl); in flush_acl()
26 for (found = acl_get_entry(acl, ACL_FIRST_ENTRY, &i); in flush_acl()
28 found = acl_get_entry(acl, ACL_NEXT_ENTRY, &i)) { in flush_acl()
38 if (acl_delete_entry(acl, i) < 0) in flush_acl()
55 _cleanup_(acl_freep) acl_t acl = NULL; in devnode_acl()
61 acl = acl_get_file(path, ACL_TYPE_ACCESS); in devnode_acl()
62 if (!acl) in devnode_acl()
67 r = flush_acl(acl); in devnode_acl()
76 r = acl_find_uid(acl, old_uid, &entry); in devnode_acl()
[all …]
Dacl-util.c15 int acl_find_uid(acl_t acl, uid_t uid, acl_entry_t *ret_entry) { in acl_find_uid() argument
19 assert(acl); in acl_find_uid()
23 for (r = acl_get_entry(acl, ACL_FIRST_ENTRY, &i); in acl_find_uid()
25 r = acl_get_entry(acl, ACL_NEXT_ENTRY, &i)) { in acl_find_uid()
152 _cleanup_(acl_freep) acl_t acl = NULL; in acl_search_groups()
159 acl = acl_get_file(path, ACL_TYPE_DEFAULT); in acl_search_groups()
160 if (!acl) in acl_search_groups()
163 r = acl_get_entry(acl, ACL_FIRST_ENTRY, &entry); in acl_search_groups()
203 r = acl_get_entry(acl, ACL_NEXT_ENTRY, &entry); in acl_search_groups()
326 static int find_acl_entry(acl_t acl, acl_entry_t entry, acl_entry_t *out) { in find_acl_entry() argument
[all …]
Dacl-util.h14 int acl_find_uid(acl_t acl, uid_t uid, acl_entry_t *entry);
19 int acls_for_file(const char *path, acl_type_t type, acl_t new, acl_t *acl);
Dmeson.build4 'acl-util.h',
95 'devnode-acl.h',
362 'acl-util.c',
363 'devnode-acl.c',
/systemd-251/src/nspawn/
Dnspawn-patch-uid.c25 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()
[all …]
/systemd-251/src/test/
Dtest-chown-rec.c14 static const uint8_t acl[] = { variable
33 char buffer[sizeof(acl) * 4]; in has_xattr()
100 assert_se(setxattr(p, "system.posix_acl_access", acl, sizeof(acl), 0) >= 0); in TEST()
Dmeson.build330 [files('test-acl-util.c'),
/systemd-251/mkosi.default.d/arch/
D10-mkosi.arch13 acl
/systemd-251/mkosi.default.d/opensuse/
D10-mkosi.opensuse47 acl
/systemd-251/mkosi.default.d/debian/
D10-mkosi.debian12 acl
/systemd-251/mkosi.default.d/fedora/
D10-mkosi.fedora67 acl
/systemd-251/mkosi.default.d/ubuntu/
D10-mkosi.ubuntu13 acl
/systemd-251/src/tmpfiles/
Dtmpfiles.c1068 static int path_set_acl(const char *path, const char *pretty, acl_type_t type, acl_t acl, bool modi… in path_set_acl() argument
1077 r = acls_for_file(path, type, acl, &dup); in path_set_acl()
1085 dup = acl_dup(acl); in path_set_acl()
/systemd-251/
Dmeson_options.txt356 option('acl', type : 'combo', choices : ['auto', 'true', 'false'], combo
Dmeson.build1148 want_acl = get_option('acl')
1150 libacl = cc.find_library('acl', required : want_acl == 'true') build