Home
last modified time | relevance | path

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

/linux-6.6.21/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-6.6.21/security/keys/
Dkeyctl.c1629 const struct cred *mycred, *pcred; in keyctl_session_to_parent() local
1673 pcred = __task_cred(parent); in keyctl_session_to_parent()
1674 if (mycred == pcred || in keyctl_session_to_parent()
1675 mycred->session_keyring == pcred->session_keyring) { in keyctl_session_to_parent()
1682 if (!uid_eq(pcred->uid, mycred->euid) || in keyctl_session_to_parent()
1683 !uid_eq(pcred->euid, mycred->euid) || in keyctl_session_to_parent()
1684 !uid_eq(pcred->suid, mycred->euid) || in keyctl_session_to_parent()
1685 !gid_eq(pcred->gid, mycred->egid) || in keyctl_session_to_parent()
1686 !gid_eq(pcred->egid, mycred->egid) || in keyctl_session_to_parent()
1687 !gid_eq(pcred->sgid, mycred->egid)) in keyctl_session_to_parent()
[all …]
/linux-6.6.21/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c287 const struct cred *cred, __rcu **pcred; in ff_layout_get_mirror_cred() local
290 pcred = &mirror->ro_cred; in ff_layout_get_mirror_cred()
292 pcred = &mirror->rw_cred; in ff_layout_get_mirror_cred()
296 cred = rcu_dereference(*pcred); in ff_layout_get_mirror_cred()
/linux-6.6.21/kernel/
Dsys.c180 const struct cred *cred = current_cred(), *pcred = __task_cred(p); in set_one_prio_perm() local
182 if (uid_eq(pcred->uid, cred->euid) || in set_one_prio_perm()
183 uid_eq(pcred->euid, cred->euid)) in set_one_prio_perm()
185 if (ns_capable(pcred->user_ns, CAP_SYS_NICE)) in set_one_prio_perm()
Dsignal.c1520 const struct cred *pcred = __task_cred(target); in kill_as_cred_perm() local
1522 return uid_eq(cred->euid, pcred->suid) || in kill_as_cred_perm()
1523 uid_eq(cred->euid, pcred->uid) || in kill_as_cred_perm()
1524 uid_eq(cred->uid, pcred->suid) || in kill_as_cred_perm()
1525 uid_eq(cred->uid, pcred->uid); in kill_as_cred_perm()
/linux-6.6.21/fs/nfs/
Ddir.c2965 const struct cred *pcred; in nfs_access_login_time() local
2971 pcred = __task_cred(parent); in nfs_access_login_time()
2972 if (parent == task || cred_fscmp(pcred, cred) != 0) in nfs_access_login_time()
Dpnfs.c1240 const struct cred **pcred, in pnfs_send_layoutreturn() argument
1247 const struct cred *cred = *pcred; in pnfs_send_layoutreturn()
1250 *pcred = NULL; in pnfs_send_layoutreturn()
/linux-6.6.21/kernel/sched/
Dcore.c7547 const struct cred *cred = current_cred(), *pcred; in check_same_owner() local
7551 pcred = __task_cred(p); in check_same_owner()
7552 match = (uid_eq(cred->euid, pcred->euid) || in check_same_owner()
7553 uid_eq(cred->euid, pcred->uid)); in check_same_owner()