/third_party/ffmpeg/libavcodec/ |
H A D | eatgq.c | 67 uint8_t *perm = s->scantable.permutated; in tgq_decode_block() local 75 block[perm[i++]] = 0; in tgq_decode_block() 77 block[perm[i++]] = 0; in tgq_decode_block() 87 block[perm[i++]] = 0; in tgq_decode_block() 91 block[perm[i]] = -s->qtable[perm[i]]; in tgq_decode_block() 96 block[perm[i]] = s->qtable[perm[i]]; in tgq_decode_block() 104 block[perm[i]] = get_sbits(gb, 8) * s->qtable[perm[ in tgq_decode_block() [all...] |
/kernel/linux/linux-5.10/security/tomoyo/ |
H A D | network.c | 235 &container_of(a, struct tomoyo_inet_acl, head)->perm; in tomoyo_merge_inet_acl() 236 u8 perm = READ_ONCE(*a_perm); in tomoyo_merge_inet_acl() local 237 const u8 b_perm = container_of(b, struct tomoyo_inet_acl, head)->perm; in tomoyo_merge_inet_acl() 240 perm &= ~b_perm; in tomoyo_merge_inet_acl() 242 perm |= b_perm; in tomoyo_merge_inet_acl() 243 WRITE_ONCE(*a_perm, perm); in tomoyo_merge_inet_acl() 244 return !perm; in tomoyo_merge_inet_acl() 261 &container_of(a, struct tomoyo_unix_acl, head)->perm; in tomoyo_merge_unix_acl() 262 u8 perm = READ_ONCE(*a_perm); in tomoyo_merge_unix_acl() local 263 const u8 b_perm = container_of(b, struct tomoyo_unix_acl, head)->perm; in tomoyo_merge_unix_acl() [all...] |
H A D | util.c | 1053 u16 perm; in tomoyo_domain_quota_is_ok() local 1058 * Reading perm bitmap might race with tomoyo_merge_*() because in tomoyo_domain_quota_is_ok() 1064 perm = data_race(container_of(ptr, struct tomoyo_path_acl, head)->perm); in tomoyo_domain_quota_is_ok() 1067 perm = data_race(container_of(ptr, struct tomoyo_path2_acl, head)->perm); in tomoyo_domain_quota_is_ok() 1070 perm = data_race(container_of(ptr, struct tomoyo_path_number_acl, head) in tomoyo_domain_quota_is_ok() 1071 ->perm); in tomoyo_domain_quota_is_ok() 1074 perm = data_race(container_of(ptr, struct tomoyo_mkdev_acl, head)->perm); in tomoyo_domain_quota_is_ok() [all...] |
/kernel/linux/linux-6.6/security/tomoyo/ |
H A D | network.c | 235 &container_of(a, struct tomoyo_inet_acl, head)->perm; in tomoyo_merge_inet_acl() 236 u8 perm = READ_ONCE(*a_perm); in tomoyo_merge_inet_acl() local 237 const u8 b_perm = container_of(b, struct tomoyo_inet_acl, head)->perm; in tomoyo_merge_inet_acl() 240 perm &= ~b_perm; in tomoyo_merge_inet_acl() 242 perm |= b_perm; in tomoyo_merge_inet_acl() 243 WRITE_ONCE(*a_perm, perm); in tomoyo_merge_inet_acl() 244 return !perm; in tomoyo_merge_inet_acl() 261 &container_of(a, struct tomoyo_unix_acl, head)->perm; in tomoyo_merge_unix_acl() 262 u8 perm = READ_ONCE(*a_perm); in tomoyo_merge_unix_acl() local 263 const u8 b_perm = container_of(b, struct tomoyo_unix_acl, head)->perm; in tomoyo_merge_unix_acl() [all...] |
H A D | util.c | 1058 u16 perm; in tomoyo_domain_quota_is_ok() local 1063 * Reading perm bitmap might race with tomoyo_merge_*() because in tomoyo_domain_quota_is_ok() 1069 perm = data_race(container_of(ptr, struct tomoyo_path_acl, head)->perm); in tomoyo_domain_quota_is_ok() 1072 perm = data_race(container_of(ptr, struct tomoyo_path2_acl, head)->perm); in tomoyo_domain_quota_is_ok() 1075 perm = data_race(container_of(ptr, struct tomoyo_path_number_acl, head) in tomoyo_domain_quota_is_ok() 1076 ->perm); in tomoyo_domain_quota_is_ok() 1079 perm = data_race(container_of(ptr, struct tomoyo_mkdev_acl, head)->perm); in tomoyo_domain_quota_is_ok() [all...] |
/kernel/linux/linux-6.6/security/apparmor/ |
H A D | policy_unpack.c | 646 static bool unpack_perm(struct aa_ext *e, u32 version, struct aa_perms *perm) in unpack_perm() argument 651 return aa_unpack_u32(e, &perm->allow, NULL) && in unpack_perm() 652 aa_unpack_u32(e, &perm->allow, NULL) && in unpack_perm() 653 aa_unpack_u32(e, &perm->deny, NULL) && in unpack_perm() 654 aa_unpack_u32(e, &perm->subtree, NULL) && in unpack_perm() 655 aa_unpack_u32(e, &perm->cond, NULL) && in unpack_perm() 656 aa_unpack_u32(e, &perm->kill, NULL) && in unpack_perm() 657 aa_unpack_u32(e, &perm->complain, NULL) && in unpack_perm() 658 aa_unpack_u32(e, &perm->prompt, NULL) && in unpack_perm() 659 aa_unpack_u32(e, &perm in unpack_perm() 1190 verify_perm(struct aa_perms *perm) verify_perm() argument [all...] |
/third_party/mksh/ |
H A D | check.pl | 505 local($type, $perm, $rest, $c, $len, $name); 510 # format is: type perm "name" 511 ($type, $perm, $rest) = 517 $perm = oct($perm) if $perm =~ /^\d+$/; 520 if (!chmod($perm, $name)) { 522 "$prog:$test{':long-name'}: can't chmod $perm $name - $!\n"; 526 if (!mkdir($name, $perm)) { 528 "$prog:$test{':long-name'}: can't mkdir $perm [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | opal-sysparam.c | 149 u8 *perm; in opal_sys_param_init() local 202 perm = kcalloc(count, sizeof(*perm), GFP_KERNEL); in opal_sys_param_init() 203 if (!perm) { in opal_sys_param_init() 220 if (of_property_read_u8_array(sysparam, "param-perm", perm, count)) { in opal_sys_param_init() 221 pr_err("SYSPARAM: Missing property param-perm in the DT\n"); in opal_sys_param_init() 248 switch (perm[i] & 3) { in opal_sys_param_init() 272 kfree(perm); in opal_sys_param_init() 281 kfree(perm); in opal_sys_param_init() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | opal-sysparam.c | 149 u8 *perm; in opal_sys_param_init() local 202 perm = kcalloc(count, sizeof(*perm), GFP_KERNEL); in opal_sys_param_init() 203 if (!perm) { in opal_sys_param_init() 220 if (of_property_read_u8_array(sysparam, "param-perm", perm, count)) { in opal_sys_param_init() 221 pr_err("SYSPARAM: Missing property param-perm in the DT\n"); in opal_sys_param_init() 248 switch (perm[i] & 3) { in opal_sys_param_init() 272 kfree(perm); in opal_sys_param_init() 281 kfree(perm); in opal_sys_param_init() [all...] |
/kernel/linux/linux-6.6/security/integrity/platform_certs/ |
H A D | machine_keyring.c | 26 key_perm_t perm; in add_to_machine_keyring() local 29 perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_VIEW; in add_to_machine_keyring() 30 rc = integrity_load_cert(INTEGRITY_KEYRING_MACHINE, source, data, len, perm); in add_to_machine_keyring() 40 data, len, perm); in add_to_machine_keyring()
|
H A D | platform_keyring.c | 29 key_perm_t perm; in add_to_platform_keyring() local 32 perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_VIEW; in add_to_platform_keyring() 35 perm); in add_to_platform_keyring()
|
/kernel/linux/linux-5.10/fs/sharefs/ |
H A D | authentication.h | 49 static inline bool is_read_only_auth(__u16 perm) in is_read_only_auth() argument 51 return (perm & SHAREFS_DIR_TYPE_MASK) == SHAREFS_DIR_TYPE_READONLY; in is_read_only_auth() 54 static inline bool is_read_write_auth(__u16 perm) in is_read_write_auth() argument 56 return (perm & SHAREFS_DIR_TYPE_MASK) == SHAREFS_DIR_TYPE_READWRITE; in is_read_write_auth()
|
/kernel/linux/linux-6.6/fs/sharefs/ |
H A D | authentication.h | 48 static inline bool is_read_only_auth(__u16 perm) in is_read_only_auth() argument 50 return (perm & SHAREFS_DIR_TYPE_MASK) == SHAREFS_DIR_TYPE_READONLY; in is_read_only_auth() 53 static inline bool is_read_write_auth(__u16 perm) in is_read_write_auth() argument 55 return (perm & SHAREFS_DIR_TYPE_MASK) == SHAREFS_DIR_TYPE_READWRITE; in is_read_write_auth()
|
/kernel/linux/linux-6.6/drivers/vhost/ |
H A D | iotlb.c | 44 * @perm: access permission of this range 52 u64 addr, unsigned int perm, in vhost_iotlb_add_range_ctx() 66 perm, opaque); in vhost_iotlb_add_range_ctx() 90 map->perm = perm; in vhost_iotlb_add_range_ctx() 105 u64 addr, unsigned int perm) in vhost_iotlb_add_range() 108 addr, perm, NULL); in vhost_iotlb_add_range() 50 vhost_iotlb_add_range_ctx(struct vhost_iotlb *iotlb, u64 start, u64 last, u64 addr, unsigned int perm, void *opaque) vhost_iotlb_add_range_ctx() argument 103 vhost_iotlb_add_range(struct vhost_iotlb *iotlb, u64 start, u64 last, u64 addr, unsigned int perm) vhost_iotlb_add_range() argument
|
/kernel/linux/linux-6.6/arch/x86/kernel/fpu/ |
H A D | core.c | 201 u64 perm; in fpu_init_guest_permissions() local 208 perm = fpuperm->__state_perm; in fpu_init_guest_permissions() 211 WRITE_ONCE(fpuperm->__state_perm, perm | FPU_GUEST_PERM_LOCKED); in fpu_init_guest_permissions() 215 gfpu->perm = perm & ~FPU_GUEST_PERM_LOCKED; in fpu_init_guest_permissions() 236 gfpu->perm = fpu_user_cfg.default_features; in fpu_alloc_guest_fpstate() 273 * fpu_enable_guest_xfd_features - Check xfeatures against guest perm and enable 277 * Enable all dynamic xfeatures according to guest perm and requested CPUID. 536 fpu->perm.__state_perm = fpu_kernel_cfg.default_features; in fpstate_reset() 537 fpu->perm in fpstate_reset() [all...] |
/test/xts/device_attest/common/permission/src/ |
H A D | permission.cpp | 65 bool Permission::IsPermissionGranted(const std::string& perm) in IsPermissionGranted() argument 71 HILOGD("[IsPermissionGranted] check permission, perm=%{public}s type=%{public}d, pid=%{public}d,uid=%{public}d", in IsPermissionGranted() 72 perm.c_str(), static_cast<int32_t>(type), pid, uid); in IsPermissionGranted() 76 result = AccessTokenKit::VerifyAccessToken(tokenId, perm); in IsPermissionGranted() 87 HILOGE("[IsPermissionGranted] permis denied, perm=%{public}s type=%{public}d, pid=%{public}d, uid=%{public}d", in IsPermissionGranted() 88 perm.c_str(), static_cast<int32_t>(type), pid, uid); in IsPermissionGranted()
|
/third_party/ntfs-3g/libntfs-3g/ |
H A D | security.c | 1384 * - from uid, gid and perm to securid (CACHED_SECURID) 1385 * - from a securid to uid, gid and perm (CACHED_PERMISSIONS) 1689 wanted.perm.uid = uid; in enter_cache() 1690 wanted.perm.gid = gid; in enter_cache() 1692 wanted.perm.mode = pxdesc->mode & 07777; in enter_cache() 1693 wanted.perm.inh_fileid = const_cpu_to_le32(0); in enter_cache() 1694 wanted.perm.inh_dirid = const_cpu_to_le32(0); in enter_cache() 1700 wanted.perm.mode = mode & 07777; in enter_cache() 1701 wanted.perm.inh_fileid = const_cpu_to_le32(0); in enter_cache() 1702 wanted.perm in enter_cache() 2078 int perm; ntfs_get_perm() local 2312 int perm; ntfs_get_perm() local 2446 int perm; ntfs_get_owner_mode() local 3443 int perm; ntfs_allowed_access() local 3523 int perm; ntfs_allowed_create() local 3639 int perm; ntfs_set_owner() local [all...] |
/kernel/linux/linux-5.10/security/integrity/platform_certs/ |
H A D | platform_keyring.c | 29 key_perm_t perm; in add_to_platform_keyring() local 32 perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_VIEW; in add_to_platform_keyring() 35 perm); in add_to_platform_keyring()
|
/third_party/libunwind/libunwind/src/ |
H A D | os-linux.h | 207 char perm[16], dash = 0, colon = 0, *cp; in maps_next() local 267 cp = scan_string (cp, perm, sizeof (perm)); in maps_next() 282 if (perm[0] == 'r') in maps_next() 286 if (perm[1] == 'w') in maps_next() 290 if (perm[2] == 'x') in maps_next()
|
/kernel/linux/linux-5.10/ipc/ |
H A D | namespace.c | 98 struct kern_ipc_perm *perm; in free_ipcs() local 107 perm = idr_find(&ids->ipcs_idr, next_id); in free_ipcs() 108 if (perm == NULL) in free_ipcs() 111 ipc_lock_object(perm); in free_ipcs() 112 free(ns, perm); in free_ipcs()
|
/third_party/selinux/libsepol/src/ |
H A D | avrule_block.c | 198 perm_datum_t *perm; in is_perm_enabled() local 207 perm = hashtab_search(cladatum->permissions.table, perm_id); in is_perm_enabled() 208 if (perm == NULL && cladatum->comdatum != 0) { in is_perm_enabled() 211 perm = in is_perm_enabled() 215 if (perm == NULL) { in is_perm_enabled()
|
/kernel/linux/linux-5.10/drivers/memory/tegra/ |
H A D | mc.c | 441 char perm[7]; in tegra_mc_irq() local 480 perm[0] = ' '; in tegra_mc_irq() 481 perm[1] = '['; in tegra_mc_irq() 484 perm[2] = 'R'; in tegra_mc_irq() 486 perm[2] = '-'; in tegra_mc_irq() 489 perm[3] = 'W'; in tegra_mc_irq() 491 perm[3] = '-'; in tegra_mc_irq() 494 perm[4] = '-'; in tegra_mc_irq() 496 perm[4] = 'S'; in tegra_mc_irq() 498 perm[ in tegra_mc_irq() [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/mce/ |
H A D | inject.c | 649 umode_t perm; member 651 { .name = "status", .fops = &status_fops, .perm = S_IRUSR | S_IWUSR }, 652 { .name = "misc", .fops = &misc_fops, .perm = S_IRUSR | S_IWUSR }, 653 { .name = "addr", .fops = &addr_fops, .perm = S_IRUSR | S_IWUSR }, 654 { .name = "synd", .fops = &synd_fops, .perm = S_IRUSR | S_IWUSR }, 655 { .name = "bank", .fops = &bank_fops, .perm = S_IRUSR | S_IWUSR }, 656 { .name = "flags", .fops = &flags_fops, .perm = S_IRUSR | S_IWUSR }, 657 { .name = "cpu", .fops = &extcpu_fops, .perm = S_IRUSR | S_IWUSR }, 658 { .name = "README", .fops = &readme_fops, .perm = S_IRUSR | S_IRGRP | S_IROTH }, 668 debugfs_create_file(dfs_fls[i].name, dfs_fls[i].perm, dfs_in in debugfs_init() [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | vhost_iotlb.h | 17 u32 perm; member 34 u64 addr, unsigned int perm, void *opaque); 36 u64 addr, unsigned int perm);
|
/third_party/node/src/permission/ |
H A D | permission.h | 42 static PermissionScope StringToPermission(const std::string& perm); 43 static const char* PermissionToString(PermissionScope perm); 45 PermissionScope perm,
|