Lines Matching refs:cred
816 const struct cred *cred = current_cred(); in kill_ok_by_cred() local
817 const struct cred *tcred = __task_cred(t); in kill_ok_by_cred()
819 return uid_eq(cred->euid, tcred->suid) || in kill_ok_by_cred()
820 uid_eq(cred->euid, tcred->uid) || in kill_ok_by_cred()
821 uid_eq(cred->uid, tcred->suid) || in kill_ok_by_cred()
822 uid_eq(cred->uid, tcred->uid) || in kill_ok_by_cred()
1501 static inline bool kill_as_cred_perm(const struct cred *cred, in kill_as_cred_perm() argument
1504 const struct cred *pcred = __task_cred(target); in kill_as_cred_perm()
1506 return uid_eq(cred->euid, pcred->suid) || in kill_as_cred_perm()
1507 uid_eq(cred->euid, pcred->uid) || in kill_as_cred_perm()
1508 uid_eq(cred->uid, pcred->suid) || in kill_as_cred_perm()
1509 uid_eq(cred->uid, pcred->uid); in kill_as_cred_perm()
1538 struct pid *pid, const struct cred *cred) in kill_pid_usb_asyncio() argument
1560 if (!kill_as_cred_perm(cred, p)) { in kill_pid_usb_asyncio()
1564 ret = security_task_kill(p, &info, sig, cred); in kill_pid_usb_asyncio()