Home
last modified time | relevance | path

Searched refs:perm (Results 1 – 25 of 264) sorted by relevance

1234567891011

/openbmc/linux/include/linux/
H A Dmoduleparam.h73 const u16 perm; member
126 #define module_param(name, type, perm) \ argument
127 module_param_named(name, name, type, perm)
135 #define module_param_unsafe(name, type, perm) \ argument
136 module_param_named_unsafe(name, name, type, perm)
149 #define module_param_named(name, value, type, perm) \ argument
151 module_param_cb(name, &param_ops_##type, &value, perm); \
161 #define module_param_named_unsafe(name, value, type, perm) \ argument
163 module_param_cb_unsafe(name, &param_ops_##type, &value, perm); \
175 #define module_param_cb(name, ops, arg, perm) \ argument
[all …]
H A Dlsm_hook_defs.h243 LSM_HOOK(int, 0, msg_queue_alloc_security, struct kern_ipc_perm *perm)
245 struct kern_ipc_perm *perm)
246 LSM_HOOK(int, 0, msg_queue_associate, struct kern_ipc_perm *perm, int msqflg)
247 LSM_HOOK(int, 0, msg_queue_msgctl, struct kern_ipc_perm *perm, int cmd)
248 LSM_HOOK(int, 0, msg_queue_msgsnd, struct kern_ipc_perm *perm,
250 LSM_HOOK(int, 0, msg_queue_msgrcv, struct kern_ipc_perm *perm,
252 LSM_HOOK(int, 0, shm_alloc_security, struct kern_ipc_perm *perm)
253 LSM_HOOK(void, LSM_RET_VOID, shm_free_security, struct kern_ipc_perm *perm)
254 LSM_HOOK(int, 0, shm_associate, struct kern_ipc_perm *perm, int shmflg)
255 LSM_HOOK(int, 0, shm_shmctl, struct kern_ipc_perm *perm, int cmd)
[all …]
/openbmc/linux/drivers/vfio/pci/
H A Dvfio_pci_config.c113 struct perm_bits *perm, int offset, __le32 *val);
115 struct perm_bits *perm, int offset, __le32 val);
176 int count, struct perm_bits *perm, in vfio_default_config_read() argument
183 memcpy(&virt, perm->virt + offset, count); in vfio_default_config_read()
202 int count, struct perm_bits *perm, in vfio_default_config_write() argument
207 memcpy(&write, perm->write + offset, count); in vfio_default_config_write()
212 memcpy(&virt, perm->virt + offset, count); in vfio_default_config_write()
249 int count, struct perm_bits *perm, in vfio_direct_config_read() argument
274 int count, struct perm_bits *perm, in vfio_raw_config_write() argument
287 int count, struct perm_bits *perm, in vfio_raw_config_read() argument
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-image-locking.c35 uint64_t perm, uint64_t shared_perm, in open_image() argument
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()
93 blk2 = open_image(img_path, perm | BLK_PERM_RESIZE, shared_perm, NULL); in test_image_locking_basic()
95 check_locked_bytes(fd, perm | BLK_PERM_RESIZE, ~shared_perm); in test_image_locking_basic()
98 blk3 = open_image(img_path, perm, BLK_PERM_WRITE_UNCHANGED, NULL); in test_image_locking_basic()
104 check_locked_bytes(fd, perm, ~shared_perm); in test_image_locking_basic()
[all …]
H A Dtest-bdrv-graph-mod.c37 uint64_t perm, uint64_t shared, in no_perm_default_perms() argument
53 uint64_t perm, uint64_t shared, in exclusive_write_perms() argument
283 uint64_t perm, uint64_t shared, in write_to_selected_perms() argument
388 assert(c_fl1->perm & BLK_PERM_WRITE); in test_parallel_perm_update()
389 assert(!(c_fl2->perm & BLK_PERM_WRITE)); in test_parallel_perm_update()
395 assert(c_fl2->perm & BLK_PERM_WRITE); in test_parallel_perm_update()
396 assert(!(c_fl1->perm & BLK_PERM_WRITE)); in test_parallel_perm_update()
402 assert(c_fl1->perm & BLK_PERM_WRITE); in test_parallel_perm_update()
403 assert(!(c_fl2->perm & BLK_PERM_WRITE)); in test_parallel_perm_update()
/openbmc/linux/security/tomoyo/
H A Dfile.c258 if (acl->perm & (1 << r->param.path.operation)) { in tomoyo_check_path_acl()
281 return (acl->perm & (1 << r->param.path_number.operation)) && in tomoyo_check_path_number_acl()
302 return (acl->perm & (1 << r->param.path2.operation)) && in tomoyo_check_path2_acl()
322 return (acl->perm & (1 << r->param.mkdev.operation)) && in tomoyo_check_mkdev_acl()
364 ->perm; in tomoyo_merge_path_acl()
365 u16 perm = READ_ONCE(*a_perm); in tomoyo_merge_path_acl() local
366 const u16 b_perm = container_of(b, struct tomoyo_path_acl, head)->perm; in tomoyo_merge_path_acl()
369 perm &= ~b_perm; in tomoyo_merge_path_acl()
371 perm |= b_perm; in tomoyo_merge_path_acl()
372 WRITE_ONCE(*a_perm, perm); in tomoyo_merge_path_acl()
[all …]
H A Dnetwork.c235 &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 Dutil.c1058 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 Dvt_ioctl.c284 unsigned long arg, bool perm) in vt_k_ioctl() argument
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()
421 return vt_do_kbkeycode_ioctl(cmd, up, perm); in vt_k_ioctl()
425 return vt_do_kdsk_ioctl(cmd, up, perm, console); in vt_k_ioctl()
429 return vt_do_kdgkb_ioctl(cmd, up, perm); in vt_k_ioctl()
437 return vt_do_diacrit(cmd, up, perm); in vt_k_ioctl()
[all …]
/openbmc/linux/security/integrity/
H A Ddigsig.c99 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
208 perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_VIEW | KEY_USR_READ; in integrity_load_x509()
[all …]
/openbmc/u-boot/cmd/
H A Dtpm_test.c237 uint32_t perm = TPM_NV_PER_WRITE_STCLEAR | TPM_NV_PER_PPWRITE; in initialise_spaces() local
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()
249 perm = TPM_NV_PER_READ_STCLEAR | TPM_NV_PER_WRITE_STCLEAR | in initialise_spaces()
251 tpm_nv_define_space(dev, INDEX_INITIALISED, perm, 1); 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()
327 TPM_CHECK(tpm_nv_define_space(dev, INDEX0, perm, 2 * sizeof(uint32_t))); in test_redefine_unowned()
[all …]
/openbmc/linux/ipc/
H A Dutil.h182 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 …]
/openbmc/linux/security/selinux/
H A Dnlmsgtab.c25 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 Dpermission.c55 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/apparmor/
H A Dpolicy_unpack.c646 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->audit, NULL) && in unpack_perm()
[all …]
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dopal-sysparam.c149 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/integrity/platform_certs/
H A Dmachine_keyring.c26 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 Dplatform_keyring.c29 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 Dsmmu-internal.h75 #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)))
H A Dsmmu-common.c437 dma_addr_t iova, IOMMUAccessFlags perm, in smmu_ptw_64_s1() argument
482 if (is_permission_fault(ap, perm) && !tt->had) { in smmu_ptw_64_s1()
519 if (is_permission_fault(ap, perm)) { in smmu_ptw_64_s1()
538 tlbe->entry.perm = tlbe->parent_perm; in smmu_ptw_64_s1()
547 tlbe->entry.perm = IOMMU_NONE; in smmu_ptw_64_s1()
566 dma_addr_t ipa, IOMMUAccessFlags perm, in smmu_ptw_64_s2() argument
642 if (is_permission_fault_s2(s2ap, perm)) { in smmu_ptw_64_s2()
660 tlbe->entry.perm = tlbe->parent_perm; in smmu_ptw_64_s2()
671 tlbe->entry.perm = IOMMU_NONE; in smmu_ptw_64_s2()
693 tlbe->parent_perm = tlbe_s2->entry.perm; in combine_tlb()
[all …]
/openbmc/linux/drivers/vhost/
H A Diotlb.c52 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/linux/arch/x86/kernel/fpu/
H A Dcore.c201 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()
536 fpu->perm.__state_perm = fpu_kernel_cfg.default_features; in fpstate_reset()
537 fpu->perm.__state_size = fpu_kernel_cfg.default_size; in fpstate_reset()
538 fpu->perm.__user_state_size = fpu_user_cfg.default_size; in fpstate_reset()
540 fpu->guest_perm = fpu->perm; in fpstate_reset()
550 dst_fpu->perm = src_fpu->perm; in fpu_inherit_perms()
/openbmc/qemu/tests/qemu-iotests/
H A D273.out206 "shared-perm": [
210 "perm": [
220 "shared-perm": [
226 "perm": [
233 "shared-perm": [
237 "perm": [
245 "shared-perm": [
251 "perm": [
/openbmc/linux/drivers/s390/char/
H A Dkeyboard.c360 int cmd, int perm) in do_kdsk_ioctl() argument
391 if (!perm) in do_kdsk_ioctl()
436 int cmd, int perm) in do_kdgkb_ioctl() argument
465 if (!perm) in do_kdgkb_ioctl()
482 int perm; in kbd_ioctl() local
492 perm = current->signal->tty == tty || capable(CAP_SYS_TTY_CONFIG); in kbd_ioctl()
499 return do_kdsk_ioctl(kbd, argp, cmd, perm); in kbd_ioctl()
502 return do_kdgkb_ioctl(kbd, argp, cmd, perm); in kbd_ioctl()
538 if (!perm) in kbd_ioctl()
558 if (!perm) in kbd_ioctl()
/openbmc/qemu/include/sysemu/
H A Dblock-backend-global-state.h25 BlockBackend *blk_new(AioContext *ctx, uint64_t perm, uint64_t shared_perm);
28 blk_new_with_bs(BlockDriverState *bs, uint64_t perm, uint64_t shared_perm,
32 blk_co_new_with_bs(BlockDriverState *bs, uint64_t perm, uint64_t shared_perm,
63 int GRAPH_UNLOCKED blk_set_perm(BlockBackend *blk, uint64_t perm,
65 void blk_get_perm(BlockBackend *blk, uint64_t *perm, uint64_t *shared_perm);

1234567891011