Home
last modified time | relevance | path

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

/linux-3.4.99/arch/mips/kernel/
Dmips-mt-fpaff.c48 const struct cred *cred = current_cred(), *pcred; in check_same_owner() local
52 pcred = __task_cred(p); in check_same_owner()
53 match = (cred->euid == pcred->euid || in check_same_owner()
54 cred->euid == pcred->uid); in check_same_owner()
/linux-3.4.99/security/keys/
Dkeyctl.c1428 const struct cred *mycred, *pcred; in keyctl_session_to_parent() local
1466 pcred = __task_cred(parent); in keyctl_session_to_parent()
1467 if (mycred == pcred || in keyctl_session_to_parent()
1468 mycred->tgcred->session_keyring == pcred->tgcred->session_keyring) in keyctl_session_to_parent()
1473 if (pcred->uid != mycred->euid || in keyctl_session_to_parent()
1474 pcred->euid != mycred->euid || in keyctl_session_to_parent()
1475 pcred->suid != mycred->euid || in keyctl_session_to_parent()
1476 pcred->gid != mycred->egid || in keyctl_session_to_parent()
1477 pcred->egid != mycred->egid || in keyctl_session_to_parent()
1478 pcred->sgid != mycred->egid) in keyctl_session_to_parent()
[all …]
/linux-3.4.99/kernel/
Dsys.c134 const struct cred *cred = current_cred(), *pcred = __task_cred(p); in set_one_prio_perm() local
136 if (pcred->user->user_ns == cred->user->user_ns && in set_one_prio_perm()
137 (pcred->uid == cred->euid || in set_one_prio_perm()
138 pcred->euid == cred->euid)) in set_one_prio_perm()
140 if (ns_capable(pcred->user->user_ns, CAP_SYS_NICE)) in set_one_prio_perm()
Dsignal.c1386 const struct cred *pcred = __task_cred(target); in kill_as_cred_perm() local
1387 if (cred->user_ns != pcred->user_ns) in kill_as_cred_perm()
1389 if (cred->euid != pcred->suid && cred->euid != pcred->uid && in kill_as_cred_perm()
1390 cred->uid != pcred->suid && cred->uid != pcred->uid) in kill_as_cred_perm()
/linux-3.4.99/kernel/sched/
Dcore.c4238 const struct cred *cred = current_cred(), *pcred; in check_same_owner() local
4242 pcred = __task_cred(p); in check_same_owner()
4243 if (cred->user->user_ns == pcred->user->user_ns) in check_same_owner()
4244 match = (cred->euid == pcred->euid || in check_same_owner()
4245 cred->euid == pcred->uid); in check_same_owner()