Searched refs:pcred (Results 1 – 7 of 7) sorted by relevance
/linux-5.19.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()
|
/linux-5.19.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 …]
|
/linux-5.19.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()
|
/linux-5.19.10/kernel/ |
D | sys.c | 172 const struct cred *cred = current_cred(), *pcred = __task_cred(p); in set_one_prio_perm() local 174 if (uid_eq(pcred->uid, cred->euid) || in set_one_prio_perm() 175 uid_eq(pcred->euid, cred->euid)) in set_one_prio_perm() 177 if (ns_capable(pcred->user_ns, CAP_SYS_NICE)) in set_one_prio_perm()
|
D | signal.c | 1502 const struct cred *pcred = __task_cred(target); in kill_as_cred_perm() local 1504 return uid_eq(cred->euid, pcred->suid) || in kill_as_cred_perm() 1505 uid_eq(cred->euid, pcred->uid) || in kill_as_cred_perm() 1506 uid_eq(cred->uid, pcred->suid) || in kill_as_cred_perm() 1507 uid_eq(cred->uid, pcred->uid); in kill_as_cred_perm()
|
/linux-5.19.10/fs/nfs/ |
D | pnfs.c | 1237 const struct cred **pcred, in pnfs_send_layoutreturn() argument 1244 const struct cred *cred = *pcred; in pnfs_send_layoutreturn() 1247 *pcred = NULL; in pnfs_send_layoutreturn()
|
/linux-5.19.10/kernel/sched/ |
D | core.c | 7305 const struct cred *cred = current_cred(), *pcred; in check_same_owner() local 7309 pcred = __task_cred(p); in check_same_owner() 7310 match = (uid_eq(cred->euid, pcred->euid) || in check_same_owner() 7311 uid_eq(cred->euid, pcred->uid)); in check_same_owner()
|