Searched refs:pcred (Results 1 – 7 of 7) sorted by relevance
/kernel/linux/linux-5.10/arch/mips/kernel/ |
D | mips-mt-fpaff.c | 51 const struct cred *cred = current_cred(), *pcred; in check_same_owner() local 55 pcred = __task_cred(p); in check_same_owner() 56 match = (uid_eq(cred->euid, pcred->euid) || in check_same_owner() 57 uid_eq(cred->euid, pcred->uid)); in check_same_owner()
|
/kernel/linux/linux-5.10/security/keys/ |
D | keyctl.c | 1624 const struct cred *mycred, *pcred; in keyctl_session_to_parent() local 1668 pcred = __task_cred(parent); in keyctl_session_to_parent() 1669 if (mycred == pcred || in keyctl_session_to_parent() 1670 mycred->session_keyring == pcred->session_keyring) { in keyctl_session_to_parent() 1677 if (!uid_eq(pcred->uid, mycred->euid) || in keyctl_session_to_parent() 1678 !uid_eq(pcred->euid, mycred->euid) || in keyctl_session_to_parent() 1679 !uid_eq(pcred->suid, mycred->euid) || in keyctl_session_to_parent() 1680 !gid_eq(pcred->gid, mycred->egid) || in keyctl_session_to_parent() 1681 !gid_eq(pcred->egid, mycred->egid) || in keyctl_session_to_parent() 1682 !gid_eq(pcred->sgid, mycred->egid)) in keyctl_session_to_parent() [all …]
|
/kernel/linux/linux-5.10/fs/nfs/flexfilelayout/ |
D | flexfilelayoutdev.c | 285 const struct cred *cred, __rcu **pcred; in ff_layout_get_mirror_cred() local 288 pcred = &mirror->ro_cred; in ff_layout_get_mirror_cred() 290 pcred = &mirror->rw_cred; in ff_layout_get_mirror_cred() 294 cred = rcu_dereference(*pcred); in ff_layout_get_mirror_cred()
|
/kernel/linux/linux-5.10/kernel/ |
D | sys.c | 160 const struct cred *cred = current_cred(), *pcred = __task_cred(p); in set_one_prio_perm() local 162 if (uid_eq(pcred->uid, cred->euid) || in set_one_prio_perm() 163 uid_eq(pcred->euid, cred->euid)) in set_one_prio_perm() 165 if (ns_capable(pcred->user_ns, CAP_SYS_NICE)) in set_one_prio_perm()
|
D | signal.c | 1473 const struct cred *pcred = __task_cred(target); in kill_as_cred_perm() local 1475 return uid_eq(cred->euid, pcred->suid) || in kill_as_cred_perm() 1476 uid_eq(cred->euid, pcred->uid) || in kill_as_cred_perm() 1477 uid_eq(cred->uid, pcred->suid) || in kill_as_cred_perm() 1478 uid_eq(cred->uid, pcred->uid); in kill_as_cred_perm()
|
/kernel/linux/linux-5.10/fs/nfs/ |
D | pnfs.c | 1230 const struct cred **pcred, in pnfs_send_layoutreturn() argument 1237 const struct cred *cred = *pcred; in pnfs_send_layoutreturn() 1240 *pcred = NULL; in pnfs_send_layoutreturn()
|
/kernel/linux/linux-5.10/kernel/sched/ |
D | core.c | 5381 const struct cred *cred = current_cred(), *pcred; in check_same_owner() local 5385 pcred = __task_cred(p); in check_same_owner() 5386 match = (uid_eq(cred->euid, pcred->euid) || in check_same_owner() 5387 uid_eq(cred->euid, pcred->uid)); in check_same_owner()
|