/openbmc/linux/include/linux/ |
H A D | moduleparam.h | 73 const u16 perm; member 126 #define module_param(name, type, perm) \ argument 127 module_param_named(name, name, type, perm) 195 __level_param_cb(name, ops, arg, perm, 1) 208 __level_param_cb(name, ops, arg, perm, 2) 221 __level_param_cb(name, ops, arg, perm, 3) 234 __level_param_cb(name, ops, arg, perm, 4) 247 __level_param_cb(name, ops, arg, perm, 5) 523 perm, -1, 0); \ 552 perm, -1, \ [all …]
|
H A D | vhost_iotlb.h | 17 u32 perm; member 34 u64 addr, unsigned int perm, void *opaque); 36 u64 addr, unsigned int perm);
|
/openbmc/qemu/tests/unit/ |
H A D | test-image-locking.c | 46 if (blk_set_perm(blk, perm, shared_perm, errp)) { in open_image() 80 uint64_t perm, shared_perm; in test_image_locking_basic() local 85 perm = BLK_PERM_WRITE | BLK_PERM_CONSISTENT_READ; in test_image_locking_basic() 87 blk1 = open_image(img_path, perm, shared_perm, &error_abort); in test_image_locking_basic() 90 check_locked_bytes(fd, perm, ~shared_perm); in test_image_locking_basic() 95 check_locked_bytes(fd, perm | BLK_PERM_RESIZE, ~shared_perm); in test_image_locking_basic() 104 check_locked_bytes(fd, perm, ~shared_perm); in test_image_locking_basic() 121 uint64_t perm, shared_perm; in test_set_perm_abort() local 126 perm = BLK_PERM_WRITE | BLK_PERM_CONSISTENT_READ; in test_set_perm_abort() 134 check_locked_bytes(fd, perm, ~shared_perm); in test_set_perm_abort() [all …]
|
H A D | test-bdrv-graph-mod.c | 37 uint64_t perm, uint64_t shared, in no_perm_default_perms() argument 53 uint64_t perm, uint64_t shared, in exclusive_write_perms() argument 287 uint64_t perm, uint64_t shared, in write_to_selected_perms() argument 392 assert(c_fl1->perm & BLK_PERM_WRITE); in test_parallel_perm_update() 393 assert(!(c_fl2->perm & BLK_PERM_WRITE)); in test_parallel_perm_update() 399 assert(c_fl2->perm & BLK_PERM_WRITE); in test_parallel_perm_update() 400 assert(!(c_fl1->perm & BLK_PERM_WRITE)); in test_parallel_perm_update() 406 assert(c_fl1->perm & BLK_PERM_WRITE); in test_parallel_perm_update() 407 assert(!(c_fl2->perm & BLK_PERM_WRITE)); in test_parallel_perm_update()
|
/openbmc/linux/drivers/vfio/pci/ |
H A D | vfio_pci_config.c | 341 kfree(perm->virt); in free_perm_bits() 342 kfree(perm->write); in free_perm_bits() 343 perm->virt = NULL; in free_perm_bits() 344 perm->write = NULL; in free_perm_bits() 365 if (!perm->virt || !perm->write) { in alloc_perm_bits() 366 free_perm_bits(perm); in alloc_perm_bits() 1866 struct perm_bits *perm; in vfio_config_do_rw() local 1896 perm = &virt_perms; in vfio_config_do_rw() 1923 if (!perm->writefn) in vfio_config_do_rw() 1929 ret = perm->writefn(vdev, *ppos, count, perm, offset, val); in vfio_config_do_rw() [all …]
|
/openbmc/linux/security/tomoyo/ |
H A D | file.c | 364 ->perm; in tomoyo_merge_path_acl() 391 .perm = perm in tomoyo_update_path_acl() 442 ->perm; in tomoyo_merge_mkdev_acl() 467 .perm = perm in tomoyo_update_mkdev_acl() 519 ->perm; in tomoyo_merge_path2_acl() 546 .perm = perm in tomoyo_update_path2_acl() 660 ->perm; in tomoyo_merge_path_number_acl() 683 .perm = perm in tomoyo_update_path_number_acl() 1021 if (perm) in tomoyo_write_file() 1027 if (perm) in tomoyo_write_file() [all …]
|
H A D | network.c | 236 u8 perm = READ_ONCE(*a_perm); in tomoyo_merge_inet_acl() local 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() 266 perm &= ~b_perm; in tomoyo_merge_unix_acl() 268 perm |= b_perm; in tomoyo_merge_unix_acl() 269 WRITE_ONCE(*a_perm, perm); in tomoyo_merge_unix_acl() 270 return !perm; in tomoyo_merge_unix_acl() 295 e.perm |= 1 << type; in tomoyo_write_inet_network() [all …]
|
H A D | util.c | 1058 u16 perm; in tomoyo_domain_quota_is_ok() local 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() 1082 perm = data_race(container_of(ptr, struct tomoyo_inet_acl, head)->perm); in tomoyo_domain_quota_is_ok() 1085 perm = data_race(container_of(ptr, struct tomoyo_unix_acl, head)->perm); in tomoyo_domain_quota_is_ok() 1088 perm = 0; in tomoyo_domain_quota_is_ok() 1091 perm = 1; in tomoyo_domain_quota_is_ok() [all …]
|
/openbmc/linux/drivers/tty/vt/ |
H A D | vt_ioctl.c | 293 if (!perm) in vt_k_ioctl() 307 if (!perm) in vt_k_ioctl() 377 if (!perm) in vt_k_ioctl() 397 if (!perm) in vt_k_ioctl() 420 perm = 0; in vt_k_ioctl() 498 if (!perm) in do_unimap_ioctl() 748 perm = 0; in vt_ioctl() 750 perm = 1; in vt_ioctl() 1065 int perm; in vt_compat_ioctl() local 1071 perm = 0; in vt_compat_ioctl() [all …]
|
/openbmc/linux/security/integrity/ |
H A D | digsig.c | 99 key_perm_t perm, in __integrity_init_keyring() argument 106 KGIDT_INIT(0), cred, perm, in __integrity_init_keyring() 128 key_perm_t perm; in integrity_init_keyring() local 131 perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_VIEW in integrity_init_keyring() 159 perm |= KEY_USR_WRITE; in integrity_init_keyring() 162 ret = __integrity_init_keyring(id, perm, restriction); in integrity_init_keyring() 169 off_t size, key_perm_t perm) in integrity_add_key() argument 178 NULL, data, size, perm, in integrity_add_key() 198 key_perm_t perm; in integrity_load_x509() local 218 const void *data, size_t len, key_perm_t perm) in integrity_load_cert() argument [all …]
|
/openbmc/linux/ipc/ |
H A D | util.h | 182 struct ipc64_perm *perm, int extra_perm); 207 static inline void ipc_lock_object(struct kern_ipc_perm *perm) in ipc_lock_object() argument 209 spin_lock(&perm->lock); in ipc_lock_object() 212 static inline void ipc_unlock_object(struct kern_ipc_perm *perm) in ipc_unlock_object() argument 214 spin_unlock(&perm->lock); in ipc_unlock_object() 217 static inline void ipc_assert_locked_object(struct kern_ipc_perm *perm) in ipc_assert_locked_object() argument 219 assert_spin_locked(&perm->lock); in ipc_assert_locked_object() 222 static inline void ipc_unlock(struct kern_ipc_perm *perm) in ipc_unlock() argument 224 ipc_unlock_object(perm); in ipc_unlock() 236 static inline bool ipc_valid_object(struct kern_ipc_perm *perm) in ipc_valid_object() argument [all …]
|
H A D | namespace.c | 126 struct kern_ipc_perm *perm; in free_ipcs() local 135 perm = idr_find(&ids->ipcs_idr, next_id); in free_ipcs() 136 if (perm == NULL) in free_ipcs() 139 ipc_lock_object(perm); in free_ipcs() 140 free(ns, perm); in free_ipcs()
|
/openbmc/u-boot/cmd/ |
H A D | tpm_test.c | 241 tpm_nv_define_space(dev, INDEX0, perm, 4); in initialise_spaces() 243 tpm_nv_define_space(dev, INDEX1, perm, 4); in initialise_spaces() 245 tpm_nv_define_space(dev, INDEX2, perm, 4); in initialise_spaces() 247 tpm_nv_define_space(dev, INDEX3, perm, 4); in initialise_spaces() 310 uint32_t perm; in test_redefine_unowned() local 326 perm = TPM_NV_PER_PPWRITE | TPM_NV_PER_GLOBALLOCK; in test_redefine_unowned() 329 perm = TPM_NV_PER_PPWRITE; in test_redefine_unowned() 362 uint32_t perm; in test_space_perm() local 369 TPM_CHECK(tpm_get_permissions(dev, INDEX0, &perm)); in test_space_perm() 370 assert((perm & PERMPPGL) == PERMPPGL); in test_space_perm() [all …]
|
/openbmc/linux/security/selinux/ |
H A D | nlmsgtab.c | 25 u32 perm; member 154 static int nlmsg_perm(u16 nlmsg_type, u32 *perm, const struct nlmsg_perm *tab, size_t tabsize) in nlmsg_perm() argument 161 *perm = tab[i].perm; in nlmsg_perm() 169 int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm) in selinux_nlmsg_lookup() argument 181 err = nlmsg_perm(nlmsg_type, perm, nlmsg_route_perms, in selinux_nlmsg_lookup() 186 err = nlmsg_perm(nlmsg_type, perm, nlmsg_tcpdiag_perms, in selinux_nlmsg_lookup() 196 err = nlmsg_perm(nlmsg_type, perm, nlmsg_xfrm_perms, in selinux_nlmsg_lookup() 205 *perm = NETLINK_AUDIT_SOCKET__NLMSG_RELAY; in selinux_nlmsg_lookup() 207 err = nlmsg_perm(nlmsg_type, perm, nlmsg_audit_perms, in selinux_nlmsg_lookup()
|
/openbmc/linux/security/keys/ |
H A D | permission.c | 55 kperm = key->perm >> 16; in key_task_permission() 61 if (gid_valid(key->gid) && key->perm & KEY_GRP_ALL) { in key_task_permission() 63 kperm = key->perm >> 8; in key_task_permission() 69 kperm = key->perm >> 8; in key_task_permission() 75 kperm = key->perm; in key_task_permission() 83 kperm |= key->perm >> 24; in key_task_permission()
|
/openbmc/linux/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()
|
/openbmc/qemu/hw/arm/ |
H A D | smmu-internal.h | 75 #define is_permission_fault(ap, perm) \ argument 76 (((perm) & IOMMU_WO) && ((ap) & 0x2)) 78 #define is_permission_fault_s2(s2ap, perm) \ argument 79 (!(((s2ap) & (perm)) == (perm)))
|
/openbmc/linux/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() 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()
|
/openbmc/linux/security/apparmor/ |
H A D | policy_unpack.c | 653 aa_unpack_u32(e, &perm->deny, NULL) && in unpack_perm() 663 aa_unpack_u32(e, &perm->tag, NULL) && in unpack_perm() 664 aa_unpack_u32(e, &perm->label, NULL); in unpack_perm() 1193 if (perm->allow & perm->deny) in verify_perm() 1195 if (perm->subtree & ~perm->allow) in verify_perm() 1197 if (perm->cond & (perm->allow | perm->deny)) in verify_perm() 1199 if (perm->kill & perm->allow) in verify_perm() 1201 if (perm->complain & (perm->allow | perm->deny)) in verify_perm() 1203 if (perm->prompt & (perm->allow | perm->deny)) in verify_perm() 1205 if (perm->complain & perm->prompt) in verify_perm() [all …]
|
/openbmc/linux/drivers/vhost/ |
H A D | iotlb.c | 52 u64 addr, unsigned int perm, in vhost_iotlb_add_range_ctx() argument 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() argument 108 addr, perm, NULL); in vhost_iotlb_add_range()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 273.out | 206 "shared-perm": [ 210 "perm": [ 220 "shared-perm": [ 226 "perm": [ 233 "shared-perm": [ 237 "perm": [ 245 "shared-perm": [ 251 "perm": [
|
/openbmc/openbmc/meta-security/dynamic-layers/meta-perl/recipes-scanners/checksecurity/files/ |
H A D | check-setuid-use-more-portable-find-args.patch | 20 - \( -type f -perm /06000 -o \( \( -type b -o -type c \) \ 21 + \( -type f \( -perm -4000 -o -perm -2000 \) -o \( \( -type b -o -type c \) \
|
/openbmc/openbmc/poky/meta/files/ |
H A D | toolchain-shar-relocate.sh | 17 \( -perm -0100 -o -perm -0010 -o -perm -0001 \) -printf "'%h/%f' ")
|
/openbmc/linux/drivers/soc/qcom/ |
H A D | rmtfs_mem.c | 256 perms[0].perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_probe() 260 perms[i + 1].perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_probe() 287 struct qcom_scm_vmperm perm; in qcom_rmtfs_mem_remove() local 290 perm.vmid = QCOM_SCM_VMID_HLOS; in qcom_rmtfs_mem_remove() 291 perm.perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_remove() 294 &rmtfs_mem->perms, &perm, 1); in qcom_rmtfs_mem_remove()
|