Home
last modified time | relevance | path

Searched refs:pcred (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/arch/mips/kernel/
Dmips-mt-fpaff.c51 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-v5.4/security/keys/
Dkeyctl.c1553 const struct cred *mycred, *pcred; in keyctl_session_to_parent() local
1597 pcred = __task_cred(parent); in keyctl_session_to_parent()
1598 if (mycred == pcred || in keyctl_session_to_parent()
1599 mycred->session_keyring == pcred->session_keyring) { in keyctl_session_to_parent()
1606 if (!uid_eq(pcred->uid, mycred->euid) || in keyctl_session_to_parent()
1607 !uid_eq(pcred->euid, mycred->euid) || in keyctl_session_to_parent()
1608 !uid_eq(pcred->suid, mycred->euid) || in keyctl_session_to_parent()
1609 !gid_eq(pcred->gid, mycred->egid) || in keyctl_session_to_parent()
1610 !gid_eq(pcred->egid, mycred->egid) || in keyctl_session_to_parent()
1611 !gid_eq(pcred->sgid, mycred->egid)) in keyctl_session_to_parent()
[all …]
/Linux-v5.4/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c285 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-v5.4/kernel/
Dsys.c158 const struct cred *cred = current_cred(), *pcred = __task_cred(p); in set_one_prio_perm() local
160 if (uid_eq(pcred->uid, cred->euid) || in set_one_prio_perm()
161 uid_eq(pcred->euid, cred->euid)) in set_one_prio_perm()
163 if (ns_capable(pcred->user_ns, CAP_SYS_NICE)) in set_one_prio_perm()
Dsignal.c1467 const struct cred *pcred = __task_cred(target); in kill_as_cred_perm() local
1469 return uid_eq(cred->euid, pcred->suid) || in kill_as_cred_perm()
1470 uid_eq(cred->euid, pcred->uid) || in kill_as_cred_perm()
1471 uid_eq(cred->uid, pcred->suid) || in kill_as_cred_perm()
1472 uid_eq(cred->uid, pcred->uid); in kill_as_cred_perm()
/Linux-v5.4/kernel/sched/
Dcore.c4739 const struct cred *cred = current_cred(), *pcred; in check_same_owner() local
4743 pcred = __task_cred(p); in check_same_owner()
4744 match = (uid_eq(cred->euid, pcred->euid) || in check_same_owner()
4745 uid_eq(cred->euid, pcred->uid)); in check_same_owner()