/linux/include/linux/ |
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 …]
|
A D | lsm_hook_defs.h | 234 LSM_HOOK(int, 0, msg_queue_alloc_security, struct kern_ipc_perm *perm) 236 struct kern_ipc_perm *perm) 238 LSM_HOOK(int, 0, msg_queue_msgctl, struct kern_ipc_perm *perm, int cmd) 239 LSM_HOOK(int, 0, msg_queue_msgsnd, struct kern_ipc_perm *perm, 241 LSM_HOOK(int, 0, msg_queue_msgrcv, struct kern_ipc_perm *perm, 243 LSM_HOOK(int, 0, shm_alloc_security, struct kern_ipc_perm *perm) 245 LSM_HOOK(int, 0, shm_associate, struct kern_ipc_perm *perm, int shmflg) 246 LSM_HOOK(int, 0, shm_shmctl, struct kern_ipc_perm *perm, int cmd) 249 LSM_HOOK(int, 0, sem_alloc_security, struct kern_ipc_perm *perm) 251 LSM_HOOK(int, 0, sem_associate, struct kern_ipc_perm *perm, int semflg) [all …]
|
A D | vhost_iotlb.h | 17 u32 perm; member 34 u64 addr, unsigned int perm, void *opaque); 36 u64 addr, unsigned int perm);
|
/linux/drivers/vfio/pci/ |
A D | vfio_pci_config.c | 340 kfree(perm->virt); in free_perm_bits() 341 kfree(perm->write); in free_perm_bits() 342 perm->virt = NULL; in free_perm_bits() 343 perm->write = NULL; in free_perm_bits() 364 if (!perm->virt || !perm->write) { in alloc_perm_bits() 365 free_perm_bits(perm); in alloc_perm_bits() 1809 struct perm_bits *perm; in vfio_config_do_rw() local 1839 perm = &virt_perms; in vfio_config_do_rw() 1866 if (!perm->writefn) in vfio_config_do_rw() 1872 ret = perm->writefn(vdev, *ppos, count, perm, offset, val); in vfio_config_do_rw() [all …]
|
/linux/security/tomoyo/ |
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 …]
|
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 …]
|
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 …]
|
/linux/drivers/tty/vt/ |
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() 1062 int perm; in vt_compat_ioctl() local 1068 perm = 0; in vt_compat_ioctl() [all …]
|
/linux/security/integrity/ |
A D | digsig.c | 97 key_perm_t perm, in __integrity_init_keyring() argument 104 KGIDT_INIT(0), cred, perm, in __integrity_init_keyring() 124 key_perm_t perm; in integrity_init_keyring() local 126 perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_VIEW in integrity_init_keyring() 142 perm |= KEY_USR_WRITE; in integrity_init_keyring() 145 return __integrity_init_keyring(id, perm, restriction); in integrity_init_keyring() 149 off_t size, key_perm_t perm) in integrity_add_key() argument 158 NULL, data, size, perm, in integrity_add_key() 178 key_perm_t perm; in integrity_load_x509() local 198 const void *data, size_t len, key_perm_t perm) in integrity_load_cert() argument [all …]
|
/linux/security/selinux/ |
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 160 *perm = tab[i].perm; in nlmsg_perm() 168 int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm) in selinux_nlmsg_lookup() argument 180 err = nlmsg_perm(nlmsg_type, perm, nlmsg_route_perms, in selinux_nlmsg_lookup() 185 err = nlmsg_perm(nlmsg_type, perm, nlmsg_tcpdiag_perms, in selinux_nlmsg_lookup() 195 err = nlmsg_perm(nlmsg_type, perm, nlmsg_xfrm_perms, in selinux_nlmsg_lookup() 204 *perm = NETLINK_AUDIT_SOCKET__NLMSG_RELAY; in selinux_nlmsg_lookup() 206 err = nlmsg_perm(nlmsg_type, perm, nlmsg_audit_perms, in selinux_nlmsg_lookup()
|
A D | avc.c | 201 u8 perm, u8 which) in avc_xperms_has_perm() argument 218 u8 driver, u8 perm) in avc_xperms_allow_perm() argument 224 security_xperm_set(xpd->allowed->p, perm); in avc_xperms_allow_perm() 283 u8 i = perm >> 5; in avc_quick_copy_xperms_decision() 390 u8 perm, in avc_xperms_audit_required() argument 421 u8 perm, int result, in avc_xperms_audit() argument 672 int i, perm; in avc_audit_pre_callback() local 685 perm = 1; in avc_audit_pre_callback() 687 if ((perm & av) && perms[i]) { in avc_audit_pre_callback() 689 av &= ~perm; in avc_audit_pre_callback() [all …]
|
/linux/ipc/ |
A D | util.h | 184 struct ipc64_perm *perm, int extra_perm); 209 static inline void ipc_lock_object(struct kern_ipc_perm *perm) in ipc_lock_object() argument 211 spin_lock(&perm->lock); in ipc_lock_object() 214 static inline void ipc_unlock_object(struct kern_ipc_perm *perm) in ipc_unlock_object() argument 216 spin_unlock(&perm->lock); in ipc_unlock_object() 219 static inline void ipc_assert_locked_object(struct kern_ipc_perm *perm) in ipc_assert_locked_object() argument 221 assert_spin_locked(&perm->lock); in ipc_assert_locked_object() 224 static inline void ipc_unlock(struct kern_ipc_perm *perm) in ipc_unlock() argument 226 ipc_unlock_object(perm); in ipc_unlock() 238 static inline bool ipc_valid_object(struct kern_ipc_perm *perm) in ipc_valid_object() argument [all …]
|
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()
|
/linux/security/keys/ |
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()
|
/linux/arch/powerpc/platforms/powernv/ |
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()
|
/linux/drivers/vhost/ |
A D | iotlb.c | 52 u64 addr, unsigned int perm, in vhost_iotlb_add_range_ctx() argument 75 map->perm = perm; in vhost_iotlb_add_range_ctx() 90 u64 addr, unsigned int perm) in vhost_iotlb_add_range() argument 93 addr, perm, NULL); in vhost_iotlb_add_range()
|
/linux/security/integrity/platform_certs/ |
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()
|
/linux/arch/x86/kernel/cpu/mce/ |
A D | inject.c | 654 umode_t perm; member 656 { .name = "status", .fops = &status_fops, .perm = S_IRUSR | S_IWUSR }, 657 { .name = "misc", .fops = &misc_fops, .perm = S_IRUSR | S_IWUSR }, 658 { .name = "addr", .fops = &addr_fops, .perm = S_IRUSR | S_IWUSR }, 659 { .name = "synd", .fops = &synd_fops, .perm = S_IRUSR | S_IWUSR }, 660 { .name = "ipid", .fops = &ipid_fops, .perm = S_IRUSR | S_IWUSR }, 661 { .name = "bank", .fops = &bank_fops, .perm = S_IRUSR | S_IWUSR }, 662 { .name = "flags", .fops = &flags_fops, .perm = S_IRUSR | S_IWUSR }, 663 { .name = "cpu", .fops = &extcpu_fops, .perm = S_IRUSR | S_IWUSR }, 664 { .name = "README", .fops = &readme_fops, .perm = S_IRUSR | S_IRGRP | S_IROTH }, [all …]
|
/linux/drivers/memory/tegra/ |
A D | mc.c | 525 char perm[7]; in tegra30_mc_handle_irq() local 564 perm[0] = ' '; in tegra30_mc_handle_irq() 565 perm[1] = '['; in tegra30_mc_handle_irq() 568 perm[2] = 'R'; in tegra30_mc_handle_irq() 570 perm[2] = '-'; in tegra30_mc_handle_irq() 573 perm[3] = 'W'; in tegra30_mc_handle_irq() 575 perm[3] = '-'; in tegra30_mc_handle_irq() 578 perm[4] = '-'; in tegra30_mc_handle_irq() 580 perm[4] = 'S'; in tegra30_mc_handle_irq() 582 perm[5] = ']'; in tegra30_mc_handle_irq() [all …]
|
/linux/drivers/vdpa/vdpa_sim/ |
A D | vdpa_sim.c | 113 int perm = -EFAULT; in dir_to_perm() local 117 perm = VHOST_MAP_WO; in dir_to_perm() 120 perm = VHOST_MAP_RO; in dir_to_perm() 123 perm = VHOST_MAP_RW; in dir_to_perm() 129 return perm; in dir_to_perm() 133 size_t size, unsigned int perm) in vdpasim_map_range() argument 178 int perm = dir_to_perm(dir); in vdpasim_map_page() local 180 if (perm < 0) in vdpasim_map_page() 544 map->last, map->addr, map->perm); in vdpasim_set_map() 558 u64 pa, u32 perm, void *opaque) in vdpasim_dma_map() argument [all …]
|
/linux/drivers/s390/char/ |
A D | keyboard.c | 360 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()
|
/linux/drivers/soc/qcom/ |
A D | rmtfs_mem.c | 240 perms[0].perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_probe() 242 perms[1].perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_probe() 268 struct qcom_scm_vmperm perm; in qcom_rmtfs_mem_remove() local 271 perm.vmid = QCOM_SCM_VMID_HLOS; in qcom_rmtfs_mem_remove() 272 perm.perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_remove() 275 &rmtfs_mem->perms, &perm, 1); in qcom_rmtfs_mem_remove()
|
/linux/sound/core/seq/oss/ |
A D | seq_oss_midi.c | 320 int perm; in snd_seq_oss_midi_open() local 334 perm = 0; in snd_seq_oss_midi_open() 336 perm |= PERM_WRITE; in snd_seq_oss_midi_open() 338 perm |= PERM_READ; in snd_seq_oss_midi_open() 339 perm &= mdev->flags; in snd_seq_oss_midi_open() 340 if (perm == 0) { in snd_seq_oss_midi_open() 346 if ((mdev->opened & perm) == perm) { in snd_seq_oss_midi_open() 351 perm &= ~mdev->opened; in snd_seq_oss_midi_open() 355 if (perm & PERM_WRITE) { in snd_seq_oss_midi_open() 362 if (perm & PERM_READ) { in snd_seq_oss_midi_open()
|
/linux/fs/nfsd/ |
A D | nfs4acl.c | 72 if (perm & ACL_READ) in mask_from_posix() 74 if (perm & ACL_WRITE) in mask_from_posix() 76 if ((perm & ACL_WRITE) && (flags & NFS4_ACL_DIR)) in mask_from_posix() 78 if (perm & ACL_EXECUTE) in mask_from_posix() 84 deny_mask_from_posix(unsigned short perm, u32 flags) in deny_mask_from_posix() argument 88 if (perm & ACL_READ) in deny_mask_from_posix() 90 if (perm & ACL_WRITE) in deny_mask_from_posix() 92 if ((perm & ACL_WRITE) && (flags & NFS4_ACL_DIR)) in deny_mask_from_posix() 94 if (perm & ACL_EXECUTE) in deny_mask_from_posix() 116 if ((perm & NFS4_READ_MODE) == NFS4_READ_MODE) in low_mode_from_nfs4() [all …]
|
/linux/fs/ceph/ |
A D | addr.c | 1769 if (pool < perm->pool) in __ceph_pool_perm_get() 1775 perm->pool_ns, in __ceph_pool_perm_get() 1782 have = perm->perm; in __ceph_pool_perm_get() 1803 if (pool < perm->pool) in __ceph_pool_perm_get() 1809 perm->pool_ns, in __ceph_pool_perm_get() 1816 have = perm->perm; in __ceph_pool_perm_get() 1897 perm = kmalloc(sizeof(*perm) + pool_ns_len + 1, GFP_NOFS); in __ceph_pool_perm_get() 1898 if (!perm) { in __ceph_pool_perm_get() 1903 perm->pool = pool; in __ceph_pool_perm_get() 1904 perm->perm = have; in __ceph_pool_perm_get() [all …]
|