Home
last modified time | relevance | path

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

12345

/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 …]
/linux/security/tomoyo/
H A Dfile.c262 if (acl->perm & (1 << r->param.path.operation)) { in tomoyo_check_path_acl()
285 return (acl->perm & (1 << r->param.path_number.operation)) && in tomoyo_check_path_number_acl()
306 return (acl->perm & (1 << r->param.path2.operation)) && in tomoyo_check_path2_acl()
326 return (acl->perm & (1 << r->param.mkdev.operation)) && in tomoyo_check_mkdev_acl()
368 ->perm; in tomoyo_merge_path_acl()
369 u16 perm = READ_ONCE(*a_perm); in tomoyo_merge_path_acl()
370 const u16 b_perm = container_of(b, struct tomoyo_path_acl, head)->perm; in tomoyo_merge_path_acl()
373 perm &= ~b_perm; in tomoyo_merge_path_acl()
375 perm |= b_perm;
376 WRITE_ONCE(*a_perm, perm);
365 u16 perm = READ_ONCE(*a_perm); tomoyo_merge_path_acl() local
386 tomoyo_update_path_acl(const u16 perm,struct tomoyo_acl_param * param) tomoyo_update_path_acl() argument
440 u8 perm = READ_ONCE(*a_perm); tomoyo_merge_mkdev_acl() local
462 tomoyo_update_mkdev_acl(const u8 perm,struct tomoyo_acl_param * param) tomoyo_update_mkdev_acl() argument
520 u8 perm = READ_ONCE(*a_perm); tomoyo_merge_path2_acl() local
541 tomoyo_update_path2_acl(const u8 perm,struct tomoyo_acl_param * param) tomoyo_update_path2_acl() argument
658 u8 perm = READ_ONCE(*a_perm); tomoyo_merge_path_number_acl() local
678 tomoyo_update_path_number_acl(const u8 perm,struct tomoyo_acl_param * param) tomoyo_update_path_number_acl() argument
1014 u16 perm = 0; tomoyo_write_file() local
[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 …]
/linux/security/integrity/
H A Ddigsig.c101 key_perm_t perm, in __integrity_init_keyring()
108 KGIDT_INIT(0), cred, perm, in __integrity_init_keyring()
130 key_perm_t perm; in integrity_init_keyring()
133 perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_VIEW in integrity_init_keyring()
161 perm |= KEY_USR_WRITE; in integrity_init_keyring()
164 ret = __integrity_init_keyring(id, perm, restriction); in integrity_init_keyring()
171 off_t size, key_perm_t perm) in integrity_add_key()
180 NULL, data, size, perm, in integrity_add_key()
201 key_perm_t perm; in integrity_load_x509()
211 perm in integrity_load_x509()
99 __integrity_init_keyring(const unsigned int id,key_perm_t perm,struct key_restriction * restriction) __integrity_init_keyring() argument
128 key_perm_t perm; integrity_init_keyring() local
169 integrity_add_key(const unsigned int id,const void * data,off_t size,key_perm_t perm) integrity_add_key() argument
199 key_perm_t perm; integrity_load_x509() local
219 integrity_load_cert(const unsigned int id,const char * source,const void * data,size_t len,key_perm_t perm) integrity_load_cert() argument
[all...]
/linux/ipc/
H A Dutil.h183 struct ipc64_perm *perm, int extra_perm);
208 static inline void ipc_lock_object(struct kern_ipc_perm *perm) in ipc_lock_object() argument
210 spin_lock(&perm->lock); in ipc_lock_object()
213 static inline void ipc_unlock_object(struct kern_ipc_perm *perm) in ipc_unlock_object() argument
215 spin_unlock(&perm->lock); in ipc_unlock_object()
218 static inline void ipc_assert_locked_object(struct kern_ipc_perm *perm) in ipc_assert_locked_object() argument
220 assert_spin_locked(&perm->lock); in ipc_assert_locked_object()
223 static inline void ipc_unlock(struct kern_ipc_perm *perm) in ipc_unlock() argument
225 ipc_unlock_object(perm); in ipc_unlock()
237 static inline bool ipc_valid_object(struct kern_ipc_perm *perm) in ipc_valid_object() argument
[all …]
H A Dnamespace.c129 struct kern_ipc_perm *perm; in free_ipcs()
138 perm = idr_find(&ids->ipcs_idr, next_id); in free_ipcs()
139 if (perm == NULL) in free_ipcs()
142 ipc_lock_object(perm); in free_ipcs()
143 free(ns, perm); in free_ipcs()
130 struct kern_ipc_perm *perm; free_ipcs() local
/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()
H A Dkey.c198 * @perm: The permissions mask of the new key.
226 key_perm_t perm, unsigned long flags, in key_alloc() argument
298 key->perm = perm; in key_alloc()
820 key_perm_t perm, in __key_create_or_update()
935 if (perm == KEY_PERM_UNDEF) { in __key_create_or_update()
936 perm = KEY_POS_VIEW | KEY_POS_SEARCH | KEY_POS_LINK | KEY_POS_SETATTR; in __key_create_or_update()
937 perm |= KEY_USR_VIEW; in __key_create_or_update()
940 perm |= KEY_POS_READ; in __key_create_or_update()
944 perm | in __key_create_or_update()
811 __key_create_or_update(key_ref_t keyring_ref,const char * type,const char * description,const void * payload,size_t plen,key_perm_t perm,unsigned long flags,bool allow_update) __key_create_or_update() argument
1018 key_create_or_update(key_ref_t keyring_ref,const char * type,const char * description,const void * payload,size_t plen,key_perm_t perm,unsigned long flags) key_create_or_update() argument
1055 key_create(key_ref_t keyring_ref,const char * type,const char * description,const void * payload,size_t plen,key_perm_t perm,unsigned long flags) key_create() argument
[all...]
/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()
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...]
/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()
/linux/drivers/vhost/
H A Diotlb.c58 u64 addr, unsigned int perm, in vhost_iotlb_add_range_ctx() argument
84 perm, opaque); in vhost_iotlb_add_range_ctx()
109 map->perm = perm; in vhost_iotlb_add_range_ctx()
124 u64 addr, unsigned int perm) in vhost_iotlb_add_range() argument
127 addr, perm, NULL); in vhost_iotlb_add_range()
/linux/security/apparmor/
H A Dpolicy_unpack.c901 static bool unpack_perm(struct aa_ext *e, u32 version, struct aa_perms *perm) in unpack_perm()
910 aa_unpack_u32(e, &perm->allow, NULL) && in unpack_perm()
911 aa_unpack_u32(e, &perm->deny, NULL) && in unpack_perm()
912 aa_unpack_u32(e, &perm->subtree, NULL) && in unpack_perm()
913 aa_unpack_u32(e, &perm->cond, NULL) && in unpack_perm()
914 aa_unpack_u32(e, &perm->kill, NULL) && in unpack_perm()
915 aa_unpack_u32(e, &perm->complain, NULL) && in unpack_perm()
916 aa_unpack_u32(e, &perm->prompt, NULL) && in unpack_perm()
917 aa_unpack_u32(e, &perm->audit, NULL) && in unpack_perm()
918 aa_unpack_u32(e, &perm in unpack_perm()
900 unpack_perm(struct aa_ext * e,u32 version,struct aa_perms * perm) unpack_perm() argument
1496 verify_perm(const struct aa_perms * perm) verify_perm() argument
[all...]
/linux/drivers/iommu/amd/
H A Dppr.c69 int perm = 0; in ppr_flag_to_fault_perm() local
72 perm |= IOMMU_FAULT_PERM_READ; in ppr_flag_to_fault_perm()
74 perm |= IOMMU_FAULT_PERM_WRITE; in ppr_flag_to_fault_perm()
76 perm |= IOMMU_FAULT_PERM_EXEC; in ppr_flag_to_fault_perm()
78 perm |= IOMMU_FAULT_PERM_PRIV; in ppr_flag_to_fault_perm()
80 return perm; in ppr_flag_to_fault_perm()
130 event.fault.prm.perm = ppr_flag_to_fault_perm(PPR_FLAGS(raw[0])); in iommu_call_iopf_notifier()
/linux/drivers/s390/char/
H A Dkeyboard.c362 int cmd, int perm) in do_kdsk_ioctl()
393 if (!perm) in do_kdsk_ioctl()
438 int cmd, int perm) in do_kdgkb_ioctl()
467 if (!perm) in do_kdgkb_ioctl()
484 int perm; in kbd_ioctl()
494 perm = current->signal->tty == tty || capable(CAP_SYS_TTY_CONFIG); in kbd_ioctl()
501 return do_kdsk_ioctl(kbd, argp, cmd, perm); in kbd_ioctl()
504 return do_kdgkb_ioctl(kbd, argp, cmd, perm); in kbd_ioctl()
540 if (!perm) in kbd_ioctl()
560 if (!perm) in kbd_ioctl()
363 do_kdsk_ioctl(struct kbd_data * kbd,struct kbentry __user * user_kbe,int cmd,int perm) do_kdsk_ioctl() argument
439 do_kdgkb_ioctl(struct kbd_data * kbd,struct kbsentry __user * u_kbs,int cmd,int perm) do_kdgkb_ioctl() argument
485 int perm; kbd_ioctl() local
[all...]
/linux/sound/core/seq/oss/
H A Dseq_oss_midi.c312 int perm; in snd_seq_oss_midi_open()
325 perm = 0; in snd_seq_oss_midi_open()
327 perm |= PERM_WRITE; in snd_seq_oss_midi_open()
329 perm |= PERM_READ; in snd_seq_oss_midi_open()
330 perm &= mdev->flags; in snd_seq_oss_midi_open()
331 if (perm == 0) in snd_seq_oss_midi_open()
335 if ((mdev->opened & perm) == perm) in snd_seq_oss_midi_open()
338 perm &= ~mdev->opened; in snd_seq_oss_midi_open()
342 if (perm in snd_seq_oss_midi_open()
307 int perm; snd_seq_oss_midi_open() local
[all...]
/linux/drivers/soc/qcom/
H A Drmtfs_mem.c265 perms[0].perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_probe()
269 perms[i + 1].perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_probe()
296 struct qcom_scm_vmperm perm; in qcom_rmtfs_mem_remove() local
299 perm.vmid = QCOM_SCM_VMID_HLOS; in qcom_rmtfs_mem_remove()
300 perm.perm = QCOM_SCM_PERM_RW; in qcom_rmtfs_mem_remove()
303 &rmtfs_mem->perms, &perm, 1); in qcom_rmtfs_mem_remove()
/linux/include/linux/
H A Dvhost_iotlb.h17 u32 perm; member
34 u64 addr, unsigned int perm, void *opaque);
36 u64 addr, unsigned int perm);
H A Dlsm_hook_defs.h277 LSM_HOOK(int, 0, msg_queue_alloc_security, struct kern_ipc_perm *perm)
279 struct kern_ipc_perm *perm)
280 LSM_HOOK(int, 0, msg_queue_associate, struct kern_ipc_perm *perm, int msqflg)
281 LSM_HOOK(int, 0, msg_queue_msgctl, struct kern_ipc_perm *perm, int cmd)
282 LSM_HOOK(int, 0, msg_queue_msgsnd, struct kern_ipc_perm *perm,
284 LSM_HOOK(int, 0, msg_queue_msgrcv, struct kern_ipc_perm *perm,
286 LSM_HOOK(int, 0, shm_alloc_security, struct kern_ipc_perm *perm)
287 LSM_HOOK(void, LSM_RET_VOID, shm_free_security, struct kern_ipc_perm *perm)
288 LSM_HOOK(int, 0, shm_associate, struct kern_ipc_perm *perm, int shmflg)
289 LSM_HOOK(int, 0, shm_shmctl, struct kern_ipc_perm *perm, in
[all...]
H A Dvt_kern.h160 int perm);
161 int vt_do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe, int perm,
163 int vt_do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb, int perm);
164 int vt_do_kdskled(unsigned int console, int cmd, unsigned long arg, int perm);
/linux/security/selinux/
H A Davc.c194 u8 perm, u8 which) in avc_xperms_has_perm() argument
200 rc = security_xperm_test(xpd->allowed->p, perm); in avc_xperms_has_perm()
203 rc = security_xperm_test(xpd->auditallow->p, perm); in avc_xperms_has_perm()
206 rc = security_xperm_test(xpd->dontaudit->p, perm); in avc_xperms_has_perm()
211 u8 driver, u8 base_perm, u8 perm) in avc_xperms_allow_perm() argument
218 security_xperm_set(xpd->allowed->p, perm); in avc_xperms_allow_perm()
268 * information relevant to this perm
270 static inline void avc_quick_copy_xperms_decision(u8 perm, in avc_quick_copy_xperms_decision() argument
278 u8 i = perm >> 5; in avc_quick_copy_xperms_decision()
386 u8 perm, in avc_xperms_audit_required() argument
416 avc_xperms_audit(u32 ssid,u32 tsid,u16 tclass,u32 requested,struct av_decision * avd,struct extended_perms_decision * xpd,u8 perm,int result,struct common_audit_data * ad) avc_xperms_audit() argument
654 u32 av = sad->audited, perm; avc_audit_pre_callback() local
[all...]
/linux/drivers/gpu/drm/i915/display/
H A Dintel_display_params.c14 #define intel_display_param_named(name, T, perm, desc) \ argument
15 module_param_named(name, intel_display_modparams.name, T, perm); \
17 #define intel_display_param_named_unsafe(name, T, perm, desc) \ argument
18 module_param_named_unsafe(name, intel_display_modparams.name, T, perm); \
/linux/net/ceph/crush/
H A Dmapper.c90 work->perm[0] = s; in bucket_perm_choose()
96 work->perm[i] = i; in bucket_perm_choose()
101 work->perm[i] = i; in bucket_perm_choose()
102 work->perm[work->perm[0]] = 0; in bucket_perm_choose()
108 dprintk(" perm_choose have %d: %d\n", i, work->perm[i]); in bucket_perm_choose()
116 unsigned int t = work->perm[p + i]; in bucket_perm_choose()
117 work->perm[p + i] = work->perm[p]; in bucket_perm_choose()
118 work->perm[p] = t; in bucket_perm_choose()
125 dprintk(" perm_choose %d: %d\n", i, work->perm[i]); in bucket_perm_choose()
127 s = work->perm[pr]; in bucket_perm_choose()
[all …]
/linux/fs/9p/
H A Dvfs_inode.c582 * @perm: create permissions in v9fs_create()
588 struct dentry *dentry, char *extension, u32 perm, u8 mode) in v9fs_create()
613 err = p9_client_fcreate(ofid, name, perm, mode, extension); in v9fs_create()
619 if (!(perm & P9_DMLINK)) { in v9fs_create()
667 u32 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_create()
671 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_ORDWR); in v9fs_vfs_create()
693 u32 perm; in v9fs_vfs_mkdir()
699 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_mkdir()
700 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_OREAD);
780 u32 perm; in v9fs_vfs_atomic_open()
580 v9fs_create(struct v9fs_session_info * v9ses,struct inode * dir,struct dentry * dentry,char * extension,u32 perm,u8 mode) v9fs_create() argument
659 u32 perm = unixmode2p9mode(v9ses, mode); v9fs_vfs_create() local
685 u32 perm; v9fs_vfs_mkdir() local
772 u32 perm; v9fs_vfs_atomic_open() local
1223 v9fs_vfs_mkspecial(struct inode * dir,struct dentry * dentry,u32 perm,const char * extension) v9fs_vfs_mkspecial() argument
1317 u32 perm; v9fs_vfs_mknod() local
[all...]

12345