Home
last modified time | relevance | path

Searched refs:acl (Results 1 - 25 of 34) sorted by relevance

12

/third_party/ntfs-3g/libntfs-3g/
H A Dxattrs.c155 struct POSIX_ACL *acl) in le_acl_to_cpu()
160 acl->version = le_acl->version; in le_acl_to_cpu()
161 acl->flags = le_acl->flags; in le_acl_to_cpu()
162 acl->filler = 0; in le_acl_to_cpu()
165 acl->ace[i].tag = le16_to_cpu(le_acl->ace[i].tag); in le_acl_to_cpu()
166 acl->ace[i].perms = le16_to_cpu(le_acl->ace[i].perms); in le_acl_to_cpu()
167 acl->ace[i].id = le32_to_cpu(le_acl->ace[i].id); in le_acl_to_cpu()
176 int cpu_to_le_acl(const struct POSIX_ACL *acl, size_t size, in cpu_to_le_acl() argument
182 le_acl->version = acl->version; in cpu_to_le_acl()
183 le_acl->flags = acl in cpu_to_le_acl()
154 le_acl_to_cpu(const struct LE_POSIX_ACL *le_acl, size_t size, struct POSIX_ACL *acl) le_acl_to_cpu() argument
491 struct POSIX_ACL *acl; ntfs_xattr_system_getxattr() local
619 struct POSIX_ACL *acl; ntfs_xattr_system_setxattr() local
[all...]
H A Dacls.c990 pacl = &pxdesc->acl; in ntfs_valid_posix()
1094 pace = &pxdesc->acl.ace[i]; in posix_header()
1113 pxdesc->acl.version = POSIX_VERSION; in posix_header()
1114 pxdesc->acl.flags = 0; in posix_header()
1115 pxdesc->acl.filler = 0; in posix_header()
1145 pacl = &pxdesc->acl; in ntfs_sort_posix()
1211 pace = &pxdesc->acl.ace[i]; in ntfs_merge_mode_posix()
1269 newpxdesc->acl.ace[i] = oldpxdesc->acl.ace[i]; in ntfs_replace_acl()
1272 newpxdesc->acl in ntfs_replace_acl()
[all...]
H A Dsecurity.c1363 pace = &pxdesc->acl.ace[k]; in ntfs_basic_perms()
1502 && memcmp(&((struct POSIX_SECURITY*)cached->variable)->acl, in compare()
1503 &((struct POSIX_SECURITY*)item->variable)->acl, csize))); in compare()
1958 pxace = &pxdesc->acl.ace[i]; in access_check_posix()
1995 pxace = &pxdesc->acl.ace[i]; in access_check_posix()
2037 pxace = &pxdesc->acl.ace[i]; in access_check_posix()
2266 memcpy(value,&pxdesc->acl,sizeof(struct POSIX_ACL)); in ntfs_get_posix_acl()
2268 &pxdesc->acl.ace[pxdesc->firstdef], in ntfs_get_posix_acl()
2275 memcpy(value,&pxdesc->acl,outsize); in ntfs_get_posix_acl()
3366 ACL *acl; in ntfs_sd_add_everyone() local
[all...]
/third_party/pulseaudio/src/pulsecore/
H A Dipacl.c67 pa_ip_acl *acl; in pa_ip_acl_new() local
71 acl = pa_xnew(pa_ip_acl, 1); in pa_ip_acl_new()
72 PA_LLIST_HEAD_INIT(struct acl_entry, acl->entries); in pa_ip_acl_new()
141 PA_LLIST_PREPEND(struct acl_entry, acl->entries, n); in pa_ip_acl_new()
146 return acl; in pa_ip_acl_new()
150 pa_ip_acl_free(acl); in pa_ip_acl_new()
155 void pa_ip_acl_free(pa_ip_acl *acl) { in pa_ip_acl_free() argument
156 pa_assert(acl); in pa_ip_acl_free()
158 while (acl->entries) { in pa_ip_acl_free()
159 struct acl_entry *e = acl in pa_ip_acl_free()
167 pa_ip_acl_check(pa_ip_acl *acl, int fd) pa_ip_acl_check() argument
[all...]
H A Dipacl.h27 void pa_ip_acl_free(pa_ip_acl *acl);
28 int pa_ip_acl_check(pa_ip_acl *acl, int fd);
H A Dohos_socket-server.c258 PACL acl; in pa_socket_server_new_unix() local
260 if (GetSecurityDescriptorDacl(sd, &acl_present, &acl, &acl_default)) { in pa_socket_server_new_unix()
261 if (SetNamedSecurityInfo(filename, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION, NULL, NULL, acl, NULL) != ERROR_SUCCESS) { in pa_socket_server_new_unix()
264 LocalFree(acl); in pa_socket_server_new_unix()
H A Dsocket-server.c239 PACL acl; in pa_socket_server_new_unix() local
241 if (GetSecurityDescriptorDacl(sd, &acl_present, &acl, &acl_default)) { in pa_socket_server_new_unix()
242 if (SetNamedSecurityInfo(filename, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION, NULL, NULL, acl, NULL) != ERROR_SUCCESS) { in pa_socket_server_new_unix()
245 LocalFree(acl); in pa_socket_server_new_unix()
/third_party/ltp/testcases/network/nfsv4/acl/
H A Dacl1.c4 * Purpose: setting an acl on a file a verifies that the accesses are right
24 #include <sys/acl.h>
31 /* the "typical" acl used for the test */
74 /* acl with user entries used for the test */
79 acl_t acl; in test_acl_user_create() local
80 acl = acl_from_text(acl_text); in test_acl_user_create()
81 return acl; in test_acl_user_create()
84 /* acl with group entries used for the test */
90 acl_t acl; in test_acl_grp_create() local
91 acl in test_acl_grp_create()
99 acl_t acl; test_acl_default_create() local
288 test_acl_default(char *dir, acl_t acl) test_acl_default() argument
[all...]
H A Dtest_acl.py18 # set default acl on the test directory
21 acl=[]
26 acl.append(name,entry)
43 if acl2[i] == acl[j]:
51 path = '/mnt/nfs/test-acl'
64 print("test acl 10000\n")
66 f = open('/tmp/acl-result-10000','w')
67 path = '/mnt/nfs/test-acl'
87 path = '/mnt/nfs/test-acl' # NFS mounted directory
89 print("test acl getfac
[all...]
H A Drandom_gen.py186 acl = []
193 acl.append(newace)
194 return acl
/third_party/ntfs-3g/ntfsprogs/
H A Dsd.c26 ACL *acl; in init_system_file_sd() local
50 acl = (ACL*)((char*)sd + le32_to_cpu(sd->dacl)); in init_system_file_sd()
51 acl->revision = 2; in init_system_file_sd()
52 acl->alignment1 = 0; in init_system_file_sd()
53 acl->size = const_cpu_to_le16(0x34); in init_system_file_sd()
54 acl->ace_count = const_cpu_to_le16(2); in init_system_file_sd()
55 acl->alignment2 = const_cpu_to_le16(0); in init_system_file_sd()
60 aa_ace = (ACCESS_ALLOWED_ACE*)((char*)acl + sizeof(ACL)); in init_system_file_sd()
174 ACL *acl; in init_root_sd() local
193 //acl in init_root_sd()
409 ACL *acl; init_secure_sds() local
[all...]
H A Dntfssecaudit.c33 * set the security parameters of file to perms (mode or acl)
58 * set the security parameters of file to perms (mode or acl)
1512 const struct POSIX_ACL *acl; in showposix() local
1526 acl = &pxdesc->acl; in showposix()
1534 printf(" version %d\n",(int)acl->version); in showposix()
1535 printf(" flags 0x%02x\n",(int)acl->flags); in showposix()
1541 pxace = &acl->ace[l]; in showposix()
2488 pxace = pxdesc->acl.ace; in merge_rights()
2533 && (pxdesc1->acl in same_posix()
5596 struct POSIX_ACL *acl; encode_posix_acl() local
[all...]
/third_party/ltp/testcases/kernel/syscalls/getxattr/
H A Dgetxattr05.c30 # include <sys/acl.h>
43 static acl_t acl; variable
137 acl = acl_from_text(acl_text); in setup()
138 if (!acl) in setup()
141 res = acl_set_file(TEST_FILE, ACL_TYPE_ACCESS, acl); in setup()
166 if (acl) in cleanup()
167 acl_free(acl); in cleanup()
181 TST_TEST_TCONF("<sys/xattr.h> or <sys/acl.h> does not exist.");
/third_party/pulseaudio/src/tests/
H A Dipacl-test.c29 pa_ip_acl *acl; in do_ip_acl_check() local
32 acl = pa_ip_acl_new(s); in do_ip_acl_check()
33 fail_unless(acl != NULL); in do_ip_acl_check()
34 result = pa_ip_acl_check(acl, fd); in do_ip_acl_check()
35 pa_ip_acl_free(acl); in do_ip_acl_check()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/
H A Dap_ctrl_iface.h21 int hostapd_ctrl_iface_acl_add_mac(struct mac_acl_entry **acl, int *num,
24 int hostapd_ctrl_iface_acl_del_mac(struct mac_acl_entry **acl, int *num,
H A Dconfig_file.h17 int hostapd_add_acl_maclist(struct mac_acl_entry **acl, int *num,
19 void hostapd_remove_acl_mac(struct mac_acl_entry **acl, int *num,
H A Dap_config_file.c133 int hostapd_add_acl_maclist(struct mac_acl_entry **acl, int *num, in hostapd_add_acl_maclist() argument
138 newacl = os_realloc_array(*acl, *num + 1, sizeof(**acl)); in hostapd_add_acl_maclist()
144 *acl = newacl; in hostapd_add_acl_maclist()
145 os_memcpy((*acl)[*num].addr, addr, ETH_ALEN); in hostapd_add_acl_maclist()
146 os_memset(&(*acl)[*num].vlan_id, 0, sizeof((*acl)[*num].vlan_id)); in hostapd_add_acl_maclist()
147 (*acl)[*num].vlan_id.untagged = vlan_id; in hostapd_add_acl_maclist()
148 (*acl)[*num].vlan_id.notempty = !!vlan_id; in hostapd_add_acl_maclist()
155 void hostapd_remove_acl_mac(struct mac_acl_entry **acl, in argument
171 hostapd_config_read_maclist(const char *fname, struct mac_acl_entry **acl, int *num) hostapd_config_read_maclist() argument
2515 enum macaddr_acl acl = atoi(pos); hostapd_config_fill() local
[all...]
H A Dap_ctrl_iface.c3385 int hostapd_ctrl_iface_acl_del_mac(struct mac_acl_entry **acl, int *num, in hostapd_ctrl_iface_acl_del_mac() argument
3397 if (hostapd_maclist_found(*acl, *num, addr, &vlan_id)) in hostapd_ctrl_iface_acl_del_mac()
3398 hostapd_remove_acl_mac(acl, num, addr); in hostapd_ctrl_iface_acl_del_mac()
3404 static void hostapd_ctrl_iface_acl_clear_list(struct mac_acl_entry **acl, in hostapd_ctrl_iface_acl_clear_list() argument
3408 hostapd_remove_acl_mac(acl, num, (*acl)[0].addr); in hostapd_ctrl_iface_acl_clear_list()
3412 static int hostapd_ctrl_iface_acl_show_mac(struct mac_acl_entry *acl, int num, in hostapd_ctrl_iface_acl_show_mac() argument
3417 if (!acl) in hostapd_ctrl_iface_acl_show_mac()
3423 MAC2STR(acl[i].addr), in hostapd_ctrl_iface_acl_show_mac()
3424 acl[ in hostapd_ctrl_iface_acl_show_mac()
3434 hostapd_ctrl_iface_acl_add_mac(struct mac_acl_entry **acl, int *num, const char *cmd) hostapd_ctrl_iface_acl_add_mac() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/
H A Dconfig_file.h17 int hostapd_add_acl_maclist(struct mac_acl_entry **acl, int *num,
19 void hostapd_remove_acl_mac(struct mac_acl_entry **acl, int *num,
H A Dap_config_file.c127 int hostapd_add_acl_maclist(struct mac_acl_entry **acl, int *num, in hostapd_add_acl_maclist() argument
132 newacl = os_realloc_array(*acl, *num + 1, sizeof(**acl)); in hostapd_add_acl_maclist()
138 *acl = newacl; in hostapd_add_acl_maclist()
139 os_memcpy((*acl)[*num].addr, addr, ETH_ALEN); in hostapd_add_acl_maclist()
140 os_memset(&(*acl)[*num].vlan_id, 0, sizeof((*acl)[*num].vlan_id)); in hostapd_add_acl_maclist()
141 (*acl)[*num].vlan_id.untagged = vlan_id; in hostapd_add_acl_maclist()
142 (*acl)[*num].vlan_id.notempty = !!vlan_id; in hostapd_add_acl_maclist()
149 void hostapd_remove_acl_mac(struct mac_acl_entry **acl, in argument
165 hostapd_config_read_maclist(const char *fname, struct mac_acl_entry **acl, int *num) hostapd_config_read_maclist() argument
2441 enum macaddr_acl acl = atoi(pos); global() local
[all...]
H A Dap_ctrl_iface.c2835 static int hostapd_ctrl_iface_acl_del_mac(struct mac_acl_entry **acl, int *num, in hostapd_ctrl_iface_acl_del_mac() argument
2847 if (hostapd_maclist_found(*acl, *num, addr, &vlan_id)) in hostapd_ctrl_iface_acl_del_mac()
2848 hostapd_remove_acl_mac(acl, num, addr); in hostapd_ctrl_iface_acl_del_mac()
2854 static void hostapd_ctrl_iface_acl_clear_list(struct mac_acl_entry **acl, in hostapd_ctrl_iface_acl_clear_list() argument
2858 hostapd_remove_acl_mac(acl, num, (*acl)[0].addr); in hostapd_ctrl_iface_acl_clear_list()
2862 static int hostapd_ctrl_iface_acl_show_mac(struct mac_acl_entry *acl, int num, in hostapd_ctrl_iface_acl_show_mac() argument
2867 if (!acl) in hostapd_ctrl_iface_acl_show_mac()
2873 MAC2STR(acl[i].addr), in hostapd_ctrl_iface_acl_show_mac()
2874 acl[ in hostapd_ctrl_iface_acl_show_mac()
2884 hostapd_ctrl_iface_acl_add_mac(struct mac_acl_entry **acl, int *num, const char *cmd) hostapd_ctrl_iface_acl_add_mac() argument
[all...]
/third_party/pulseaudio/src/daemon/
H A Dmain.c199 PACL acl; in change_user() local
201 if (GetSecurityDescriptorDacl(sd, &acl_present, &acl, &acl_default)) { in change_user()
202 if (SetNamedSecurityInfo(run_path, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION | PROTECTED_DACL_SECURITY_INFORMATION, NULL, NULL, acl, NULL) != ERROR_SUCCESS) { in change_user()
205 LocalFree(acl); in change_user()
223 PACL acl; in change_user() local
225 if (GetSecurityDescriptorDacl(sd, &acl_present, &acl, &acl_default)) { in change_user()
226 if (SetNamedSecurityInfo(lib_path, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION | PROTECTED_DACL_SECURITY_INFORMATION, NULL, NULL, acl, NULL) != ERROR_SUCCESS) { in change_user()
229 LocalFree(acl); in change_user()
H A Dohos_pa_main.c202 PACL acl; in change_user() local
204 if (GetSecurityDescriptorDacl(sd, &acl_present, &acl, &acl_default)) { in change_user()
205 if (SetNamedSecurityInfo(run_path, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION | PROTECTED_DACL_SECURITY_INFORMATION, NULL, NULL, acl, NULL) != ERROR_SUCCESS) { in change_user()
208 LocalFree(acl); in change_user()
226 PACL acl; in change_user() local
228 if (GetSecurityDescriptorDacl(sd, &acl_present, &acl, &acl_default)) { in change_user()
229 if (SetNamedSecurityInfo(lib_path, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION | PROTECTED_DACL_SECURITY_INFORMATION, NULL, NULL, acl, NULL) != ERROR_SUCCESS) { in change_user()
232 LocalFree(acl); in change_user()
/third_party/ntfs-3g/src/
H A Dntfs-3g_common.c94 { "acl", OPT_ACL, FLGOPT_BOGUS },
247 int acl = 0; in parse_mount_options() local
330 acl = 1; in parse_mount_options()
554 if ((default_permissions || (permissions && !acl)) in parse_mount_options()
569 if (permissions && !acl) in parse_mount_options()
571 if (acl) in parse_mount_options()
H A Dntfs-3g_common.h150 BOOL acl; member

Completed in 32 milliseconds

12