/Linux-v5.10/include/linux/ |
D | moduleparam.h | 73 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, ¶m_ops_##type, &value, perm); \ 161 #define module_param_named_unsafe(name, value, type, perm) \ argument 163 module_param_cb_unsafe(name, ¶m_ops_##type, &value, perm); \ 175 #define module_param_cb(name, ops, arg, perm) \ argument [all …]
|
D | lsm_hook_defs.h | 223 LSM_HOOK(int, 0, msg_queue_alloc_security, struct kern_ipc_perm *perm) 225 struct kern_ipc_perm *perm) 226 LSM_HOOK(int, 0, msg_queue_associate, struct kern_ipc_perm *perm, int msqflg) 227 LSM_HOOK(int, 0, msg_queue_msgctl, struct kern_ipc_perm *perm, int cmd) 228 LSM_HOOK(int, 0, msg_queue_msgsnd, struct kern_ipc_perm *perm, 230 LSM_HOOK(int, 0, msg_queue_msgrcv, struct kern_ipc_perm *perm, 232 LSM_HOOK(int, 0, shm_alloc_security, struct kern_ipc_perm *perm) 233 LSM_HOOK(void, LSM_RET_VOID, shm_free_security, struct kern_ipc_perm *perm) 234 LSM_HOOK(int, 0, shm_associate, struct kern_ipc_perm *perm, int shmflg) 235 LSM_HOOK(int, 0, shm_shmctl, struct kern_ipc_perm *perm, int cmd) [all …]
|
D | vt_kern.h | 166 int perm); 167 int vt_do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe, int perm, 169 int vt_do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb, int perm); 170 int vt_do_kdskled(int console, int cmd, unsigned long arg, int perm);
|
/Linux-v5.10/drivers/vfio/pci/ |
D | vfio_pci_config.c | 112 struct perm_bits *perm, int offset, __le32 *val); 114 struct perm_bits *perm, int offset, __le32 val); 175 int count, struct perm_bits *perm, in vfio_default_config_read() argument 182 memcpy(&virt, perm->virt + offset, count); in vfio_default_config_read() 201 int count, struct perm_bits *perm, in vfio_default_config_write() argument 206 memcpy(&write, perm->write + offset, count); in vfio_default_config_write() 211 memcpy(&virt, perm->virt + offset, count); in vfio_default_config_write() 248 int count, struct perm_bits *perm, in vfio_direct_config_read() argument 273 int count, struct perm_bits *perm, in vfio_raw_config_write() argument 286 int count, struct perm_bits *perm, in vfio_raw_config_read() argument [all …]
|
/Linux-v5.10/security/tomoyo/ |
D | file.c | 258 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 = *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 *a_perm = perm; in tomoyo_merge_path_acl() [all …]
|
D | network.c | 235 &container_of(a, struct tomoyo_inet_acl, head)->perm; in tomoyo_merge_inet_acl() 236 u8 perm = *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 *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 = *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 …]
|
D | util.c | 1051 u16 perm; in tomoyo_domain_quota_is_ok() local 1058 perm = container_of(ptr, struct tomoyo_path_acl, head) in tomoyo_domain_quota_is_ok() 1059 ->perm; in tomoyo_domain_quota_is_ok() 1062 perm = container_of(ptr, struct tomoyo_path2_acl, head) in tomoyo_domain_quota_is_ok() 1063 ->perm; in tomoyo_domain_quota_is_ok() 1066 perm = container_of(ptr, struct tomoyo_path_number_acl, in tomoyo_domain_quota_is_ok() 1067 head)->perm; in tomoyo_domain_quota_is_ok() 1070 perm = container_of(ptr, struct tomoyo_mkdev_acl, in tomoyo_domain_quota_is_ok() 1071 head)->perm; in tomoyo_domain_quota_is_ok() 1074 perm = container_of(ptr, struct tomoyo_inet_acl, in tomoyo_domain_quota_is_ok() [all …]
|
/Linux-v5.10/drivers/tty/vt/ |
D | vt_ioctl.c | 285 unsigned long arg, bool perm) in vt_k_ioctl() argument 294 if (!perm) in vt_k_ioctl() 308 if (!perm) in vt_k_ioctl() 378 if (!perm) in vt_k_ioctl() 395 if (!perm) in vt_k_ioctl() 418 perm = 0; in vt_k_ioctl() 419 return vt_do_kbkeycode_ioctl(cmd, up, perm); in vt_k_ioctl() 423 return vt_do_kdsk_ioctl(cmd, up, perm, console); in vt_k_ioctl() 427 return vt_do_kdgkb_ioctl(cmd, up, perm); in vt_k_ioctl() 435 return vt_do_diacrit(cmd, up, perm); in vt_k_ioctl() [all …]
|
/Linux-v5.10/security/integrity/ |
D | digsig.c | 97 key_perm_t perm, in __integrity_init_keyring() argument 104 KGIDT_INIT(0), cred, perm, in __integrity_init_keyring() 122 key_perm_t perm; in integrity_init_keyring() local 124 perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_VIEW in integrity_init_keyring() 140 perm |= KEY_USR_WRITE; in integrity_init_keyring() 143 return __integrity_init_keyring(id, perm, restriction); in integrity_init_keyring() 147 off_t size, key_perm_t perm) in integrity_add_key() argument 156 NULL, data, size, perm, in integrity_add_key() 176 key_perm_t perm; in integrity_load_x509() local 186 perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_VIEW | KEY_USR_READ; in integrity_load_x509() [all …]
|
/Linux-v5.10/security/selinux/ |
D | nlmsgtab.c | 25 u32 perm; member 149 static int nlmsg_perm(u16 nlmsg_type, u32 *perm, const struct nlmsg_perm *tab, size_t tabsize) in nlmsg_perm() argument 155 *perm = tab[i].perm; in nlmsg_perm() 163 int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm) in selinux_nlmsg_lookup() argument 175 err = nlmsg_perm(nlmsg_type, perm, nlmsg_route_perms, in selinux_nlmsg_lookup() 180 err = nlmsg_perm(nlmsg_type, perm, nlmsg_tcpdiag_perms, in selinux_nlmsg_lookup() 190 err = nlmsg_perm(nlmsg_type, perm, nlmsg_xfrm_perms, in selinux_nlmsg_lookup() 199 *perm = NETLINK_AUDIT_SOCKET__NLMSG_RELAY; in selinux_nlmsg_lookup() 201 err = nlmsg_perm(nlmsg_type, perm, nlmsg_audit_perms, in selinux_nlmsg_lookup()
|
D | avc.c | 201 u8 perm, u8 which) in avc_xperms_has_perm() argument 207 rc = security_xperm_test(xpd->allowed->p, perm); in avc_xperms_has_perm() 210 rc = security_xperm_test(xpd->auditallow->p, perm); in avc_xperms_has_perm() 213 rc = security_xperm_test(xpd->dontaudit->p, perm); in avc_xperms_has_perm() 218 u8 driver, u8 perm) in avc_xperms_allow_perm() argument 224 security_xperm_set(xpd->allowed->p, perm); in avc_xperms_allow_perm() 275 static inline void avc_quick_copy_xperms_decision(u8 perm, in avc_quick_copy_xperms_decision() argument 283 u8 i = perm >> 5; in avc_quick_copy_xperms_decision() 389 u8 perm, in avc_xperms_audit_required() argument 399 if (avc_xperms_has_perm(xpd, perm, XPERMS_DONTAUDIT)) in avc_xperms_audit_required() [all …]
|
/Linux-v5.10/ipc/ |
D | util.h | 181 struct ipc64_perm *perm, int extra_perm); 206 static inline void ipc_lock_object(struct kern_ipc_perm *perm) in ipc_lock_object() argument 208 spin_lock(&perm->lock); in ipc_lock_object() 211 static inline void ipc_unlock_object(struct kern_ipc_perm *perm) in ipc_unlock_object() argument 213 spin_unlock(&perm->lock); in ipc_unlock_object() 216 static inline void ipc_assert_locked_object(struct kern_ipc_perm *perm) in ipc_assert_locked_object() argument 218 assert_spin_locked(&perm->lock); in ipc_assert_locked_object() 221 static inline void ipc_unlock(struct kern_ipc_perm *perm) in ipc_unlock() argument 223 ipc_unlock_object(perm); in ipc_unlock() 235 static inline bool ipc_valid_object(struct kern_ipc_perm *perm) in ipc_valid_object() argument [all …]
|
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-v5.10/security/keys/ |
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-v5.10/arch/powerpc/platforms/powernv/ |
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-v5.10/security/integrity/platform_certs/ |
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-v5.10/drivers/memory/tegra/ |
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[5] = ']'; in tegra_mc_irq() [all …]
|
/Linux-v5.10/drivers/s390/char/ |
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-v5.10/arch/x86/kernel/cpu/mce/ |
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_inj, in debugfs_init()
|
/Linux-v5.10/drivers/soc/qcom/ |
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-v5.10/drivers/gpu/drm/i915/ |
D | i915_params.c | 30 #define i915_param_named(name, T, perm, desc) \ argument 31 module_param_named(name, i915_modparams.name, T, perm); \ 33 #define i915_param_named_unsafe(name, T, perm, desc) \ argument 34 module_param_named_unsafe(name, i915_modparams.name, T, perm); \
|
/Linux-v5.10/sound/core/seq/oss/ |
D | seq_oss_midi.c | 317 int perm; in snd_seq_oss_midi_open() local 330 perm = 0; in snd_seq_oss_midi_open() 332 perm |= PERM_WRITE; in snd_seq_oss_midi_open() 334 perm |= PERM_READ; in snd_seq_oss_midi_open() 335 perm &= mdev->flags; in snd_seq_oss_midi_open() 336 if (perm == 0) { in snd_seq_oss_midi_open() 342 if ((mdev->opened & perm) == perm) { in snd_seq_oss_midi_open() 347 perm &= ~mdev->opened; in snd_seq_oss_midi_open() 351 if (perm & PERM_WRITE) { in snd_seq_oss_midi_open() 358 if (perm & PERM_READ) { in snd_seq_oss_midi_open()
|
/Linux-v5.10/fs/nfsd/ |
D | nfs4acl.c | 66 mask_from_posix(unsigned short perm, unsigned int flags) in mask_from_posix() argument 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() [all …]
|
/Linux-v5.10/lib/ |
D | test_hmm.c | 741 unsigned char *perm, unsigned long entry) in dmirror_mkentry() argument 746 *perm = HMM_DMIRROR_PROT_ERROR; in dmirror_mkentry() 750 *perm = HMM_DMIRROR_PROT_NONE; in dmirror_mkentry() 758 *perm = HMM_DMIRROR_PROT_DEV_PRIVATE_LOCAL; in dmirror_mkentry() 760 *perm = HMM_DMIRROR_PROT_DEV_PRIVATE_REMOTE; in dmirror_mkentry() 762 *perm = HMM_DMIRROR_PROT_ZERO; in dmirror_mkentry() 764 *perm = HMM_DMIRROR_PROT_NONE; in dmirror_mkentry() 766 *perm |= HMM_DMIRROR_PROT_WRITE; in dmirror_mkentry() 768 *perm |= HMM_DMIRROR_PROT_READ; in dmirror_mkentry() 770 *perm |= HMM_DMIRROR_PROT_PMD; in dmirror_mkentry() [all …]
|
/Linux-v5.10/fs/ceph/ |
D | addr.c | 1884 struct ceph_pool_perm *perm; in __ceph_pool_perm_get() local 1892 perm = rb_entry(*p, struct ceph_pool_perm, node); in __ceph_pool_perm_get() 1893 if (pool < perm->pool) in __ceph_pool_perm_get() 1895 else if (pool > perm->pool) in __ceph_pool_perm_get() 1899 perm->pool_ns, in __ceph_pool_perm_get() 1900 perm->pool_ns_len); in __ceph_pool_perm_get() 1906 have = perm->perm; in __ceph_pool_perm_get() 1926 perm = rb_entry(parent, struct ceph_pool_perm, node); in __ceph_pool_perm_get() 1927 if (pool < perm->pool) in __ceph_pool_perm_get() 1929 else if (pool > perm->pool) in __ceph_pool_perm_get() [all …]
|