/test/xts/hats/hdf/external_device_manager/driver_extension_manager_client_test/ |
H A D | driver_extension_manager_client_test.cpp | 67 const char **perms = new const char *[1];
in GetNativeToken() local 68 perms[0] = "ohos.permission.ACCESS_EXTENSIONAL_DEVICE_DRIVER";
in GetNativeToken() 75 .perms = perms,
in GetNativeToken() 84 delete[] perms;
in GetNativeToken()
|
/kernel/linux/linux-5.10/security/apparmor/include/ |
H A D | perms.h | 143 struct aa_perms *perms); 145 struct aa_perms *perms); 149 int type, u32 request, struct aa_perms *perms); 153 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms,
|
/test/testfwk/arkxtest/testserver/test/unittest/ |
H A D | mock_permission.cpp | 32 .perms = permissionParams, in MockPermission() 51 .perms = permissionParams, in MockProcess()
|
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | mlock2.h | 31 char perms[5]; in seek_to_smaps_entry() local 45 &start, &end, perms, &offset, dev, &inode, path) < 6) in seek_to_smaps_entry()
|
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | mlock2.h | 23 char perms[5]; in seek_to_smaps_entry() local 37 &start, &end, perms, &offset, dev, &inode, path) < 6) in seek_to_smaps_entry()
|
/kernel/linux/linux-6.6/security/apparmor/ |
H A D | task.c | 236 struct aa_perms perms = { }; in profile_ptrace_perm() local 241 &perms); in profile_ptrace_perm() 242 aa_apply_modes_to_perms(profile, &perms); in profile_ptrace_perm() 243 return aa_check_perms(profile, &perms, request, ad, audit_ptrace_cb); in profile_ptrace_perm()
|
/third_party/selinux/libsepol/src/ |
H A D | util.c | 150 for (bit = 0; bit < sizeof(xperms->perms)*8; bit++) { in sepol_extended_perms_to_string() 151 if (!xperm_test(bit, xperms->perms)) in sepol_extended_perms_to_string() 154 if (in_range && next_bit_in_range(bit, xperms->perms)) { in sepol_extended_perms_to_string() 157 } else if (next_bit_in_range(bit, xperms->perms)) { in sepol_extended_perms_to_string()
|
H A D | kernel_to_cil.c | 284 char *perms; in class_constraint_rules_to_strs() local 298 perms = sepol_av_to_string(pdb, class->s.value, curr->permissions); in class_constraint_rules_to_strs() 308 rc = strs_create_and_add(strs, "(%s (%s (%s)) %s)", 4, key_word, classkey, perms+1, expr); in class_constraint_rules_to_strs() 438 char *perms = NULL; in class_or_common_perms_to_str() local 452 perms = strs_to_str(strs); in class_or_common_perms_to_str() 458 return perms; in class_or_common_perms_to_str() 466 char *name, *perms; in write_class_decl_rules_to_cil() local 475 perms = class_or_common_perms_to_str(&class->permissions); in write_class_decl_rules_to_cil() 476 if (perms) { in write_class_decl_rules_to_cil() 477 sepol_printf(out, "(class %s (%s))\n", name, perms); in write_class_decl_rules_to_cil() 1709 char *src, *class, *perms, *new; avtab_node_to_str() local [all...] |
H A D | kernel_to_conf.c | 279 char *perms, *expr; in class_constraint_rules_to_strs() local 293 perms = sepol_av_to_string(pdb, class->s.value, curr->permissions); in class_constraint_rules_to_strs() 294 if (strchr(perms, ' ')) { in class_constraint_rules_to_strs() 311 perm_prefix, perms+1, perm_suffix, in class_constraint_rules_to_strs() 524 char *perms = NULL; in class_or_common_perms_to_str() local 538 perms = strs_to_str(strs); in class_or_common_perms_to_str() 544 return perms; in class_or_common_perms_to_str() 552 char *name, *perms; in write_class_and_common_rules_to_conf() local 576 perms = class_or_common_perms_to_str(&common->permissions); in write_class_and_common_rules_to_conf() 577 if (!perms) { in write_class_and_common_rules_to_conf() 1686 const char *flavor, *src, *tgt, *class, *perms, *new; avtab_node_to_str() local [all...] |
/drivers/external_device_manager/test/unittest/driver_extension_manager_client_test/ |
H A D | driver_extension_manager_client_test.cpp | 67 const char **perms = new const char *[1];
in GetNativeToken() local 68 perms[0] = "ohos.permission.ACCESS_EXTENSIONAL_DEVICE_DRIVER";
in GetNativeToken() 75 .perms = perms,
in GetNativeToken() 84 delete[] perms;
in GetNativeToken()
|
/kernel/linux/linux-6.6/security/apparmor/include/ |
H A D | policy.h | 30 #include "perms.h" 78 * perms: table of permissions 85 struct aa_perms *perms; member 95 if (policy->perms) in aa_destroy_policydb() 96 kvfree(policy->perms); in aa_destroy_policydb() 106 if (!(policy->perms)) in aa_lookup_perms() 109 return &(policy->perms[index]); in aa_lookup_perms()
|
/kernel/linux/linux-6.6/security/selinux/include/ |
H A D | security.h | 221 #define security_xperm_set(perms, x) ((perms)[(x) >> 5] |= 1 << ((x) & 0x1f)) 222 #define security_xperm_test(perms, x) (1 & ((perms)[(x) >> 5] >> ((x) & 0x1f))) 311 const char *class, char ***perms, u32 *nperms);
|
/third_party/ntfs-3g/ntfsprogs/ |
H A D | ntfssecaudit.c | 32 * ntfssecaudit volume perms file 33 * set the security parameters of file to perms (mode or acl) 34 * ntfssecaudit -r[v] volume perms directory 35 * set the security parameters of files in directory to perms 57 * ntfssecaudit perms file 58 * set the security parameters of file to perms (mode or acl) 59 * ntfssecaudit -r[v] perms directory 60 * set the security parameters of files in directory to perms 1517 int perms; in showposix() local 1543 perms in showposix() 2750 mode_t perms; check_samples() local 5586 u16 perms; encode_posix_acl() local 5877 setperms(const char *volume, const char *perms, const char *base) setperms() argument [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | lgetxattr.c | 36 mode_t perms = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; in lgetxattr_0100() local 37 int fd = open(path, O_RDWR | O_CREAT, perms); in lgetxattr_0100()
|
H A D | llistxattr.c | 36 mode_t perms = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; in llistxattr_0100() local 37 int fd = open(path, O_RDWR | O_CREAT, perms); in llistxattr_0100()
|
H A D | listxattr.c | 36 mode_t perms = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; in listxattr_0100() local 37 int fd = open(path, O_RDWR | O_CREAT, perms); in listxattr_0100()
|
/kernel/linux/linux-6.6/security/selinux/ss/ |
H A D | avtab.c | 124 /* extended perms may not be unique */ in avtab_insert() 381 __le32 buf32[ARRAY_SIZE(xperms.perms.p)]; in avtab_read_item() 508 rc = next_entry(buf32, fp, sizeof(u32)*ARRAY_SIZE(xperms.perms.p)); in avtab_read_item() 513 for (i = 0; i < ARRAY_SIZE(xperms.perms.p); i++) in avtab_read_item() 514 xperms.perms.p[i] = le32_to_cpu(buf32[i]); in avtab_read_item() 585 __le32 buf32[ARRAY_SIZE(cur->datum.u.xperms->perms.p)]; in avtab_write_item() 604 for (i = 0; i < ARRAY_SIZE(cur->datum.u.xperms->perms.p); i++) in avtab_write_item() 605 buf32[i] = cpu_to_le32(cur->datum.u.xperms->perms.p[i]); in avtab_write_item() 607 ARRAY_SIZE(cur->datum.u.xperms->perms.p), fp); in avtab_write_item()
|
/test/xts/dcts/distributedhardware/distributedaudionewtest/ |
H A D | distributedaudiotest.cpp | 721 const char *perms[2]; in GetSyncOnlineDevices() local 722 perms[0] = OHOS_PERMISSION_DISTRIBUTED_SOFTBUS_CENTER; in GetSyncOnlineDevices() 723 perms[1] = OHOS_PERMISSION_DISTRIBUTED_DATASYNC; in GetSyncOnlineDevices() 729 .perms = perms, in GetSyncOnlineDevices() 817 const char *perms[2]; in AddPermission() local 818 perms[0] = OHOS_PERMISSION_DISTRIBUTED_SOFTBUS_CENTER; in AddPermission() 819 perms[1] = OHOS_PERMISSION_DISTRIBUTED_DATASYNC; in AddPermission() 825 .perms = perms, in AddPermission() [all...] |
/kernel/linux/linux-5.10/arch/ia64/include/asm/sn/ |
H A D | sn_sal.h | 67 sn_change_memprotect(u64 paddr, u64 len, u64 perms, u64 *nasid_array) in sn_change_memprotect() argument 72 (u64)nasid_array, perms, 0, 0, 0); in sn_change_memprotect()
|
/kernel/linux/linux-6.6/arch/ia64/include/asm/sn/ |
H A D | sn_sal.h | 67 sn_change_memprotect(u64 paddr, u64 len, u64 perms, u64 *nasid_array) in sn_change_memprotect() argument 72 (u64)nasid_array, perms, 0, 0, 0); in sn_change_memprotect()
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/ |
H A D | siw_mem.h | 17 enum ib_access_flags perms, int len); 19 struct siw_mem *mem[], enum ib_access_flags perms,
|
/kernel/linux/linux-6.6/drivers/infiniband/sw/siw/ |
H A D | siw_mem.h | 17 enum ib_access_flags perms, int len); 19 struct siw_mem *mem[], enum ib_access_flags perms,
|
/third_party/selinux/libsepol/cil/src/ |
H A D | cil_post.c | 1022 permx->perms = cil_malloc(sizeof(*permx->perms)); in __evaluate_permissionx_expression() 1023 ebitmap_init(permx->perms); in __evaluate_permissionx_expression() 1025 rc = __cil_expr_to_bitmap(permx->expr_str, permx->perms, 0x10000, db); // max is one more than 0xFFFF in __evaluate_permissionx_expression() 1028 ebitmap_destroy(permx->perms); in __evaluate_permissionx_expression() 1029 free(permx->perms); in __evaluate_permissionx_expression() 1030 permx->perms = NULL; in __evaluate_permissionx_expression() 1570 if (rule->perms.x.permx_str == NULL) { in __cil_post_db_attr_helper() 1571 rc = __evaluate_permissionx_expression(rule->perms.x.permx, db); in __cil_post_db_attr_helper() 2029 ebitmap_t *perms; member 2036 ebitmap_t *perms = perm_args->perms; __perm_bits_to_list() local 2050 __evaluate_perm_expression(struct cil_list *perms, enum cil_flavor flavor, symtab_t *class_symtab, symtab_t *common_symtab, unsigned int num_perms, struct cil_list **new_list, struct cil_db *db) __evaluate_perm_expression() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/mqueue/ |
H A D | mq_open_tests.c | 203 int perms = DEFFILEMODE; in test_queue() local 205 if ((queue = mq_open(queue_path, flags, perms, attr)) == -1) in test_queue() 225 int perms = DEFFILEMODE; in test_queue_fail() local 227 if ((queue = mq_open(queue_path, flags, perms, attr)) == -1) in test_queue_fail()
|
/kernel/linux/linux-6.6/tools/testing/selftests/mqueue/ |
H A D | mq_open_tests.c | 203 int perms = DEFFILEMODE; in test_queue() local 205 if ((queue = mq_open(queue_path, flags, perms, attr)) == -1) in test_queue() 225 int perms = DEFFILEMODE; in test_queue_fail() local 227 if ((queue = mq_open(queue_path, flags, perms, attr)) == -1) in test_queue_fail()
|