Lines Matching refs:cred
828 const struct cred *cred = current_cred(); in kill_ok_by_cred() local
829 const struct cred *tcred = __task_cred(t); in kill_ok_by_cred()
831 return uid_eq(cred->euid, tcred->suid) || in kill_ok_by_cred()
832 uid_eq(cred->euid, tcred->uid) || in kill_ok_by_cred()
833 uid_eq(cred->uid, tcred->suid) || in kill_ok_by_cred()
834 uid_eq(cred->uid, tcred->uid) || in kill_ok_by_cred()
1522 static inline bool kill_as_cred_perm(const struct cred *cred, in kill_as_cred_perm() argument
1525 const struct cred *pcred = __task_cred(target); in kill_as_cred_perm()
1527 return uid_eq(cred->euid, pcred->suid) || in kill_as_cred_perm()
1528 uid_eq(cred->euid, pcred->uid) || in kill_as_cred_perm()
1529 uid_eq(cred->uid, pcred->suid) || in kill_as_cred_perm()
1530 uid_eq(cred->uid, pcred->uid); in kill_as_cred_perm()
1559 struct pid *pid, const struct cred *cred) in kill_pid_usb_asyncio() argument
1581 if (!kill_as_cred_perm(cred, p)) { in kill_pid_usb_asyncio()
1585 ret = security_task_kill(p, &info, sig, cred); in kill_pid_usb_asyncio()