Searched refs:tcred (Results 1 – 5 of 5) sorted by relevance
/kernel/ |
D | tsacct.c | 24 const struct cred *tcred; in bacct_add_tsk() local 61 tcred = __task_cred(tsk); in bacct_add_tsk() 62 stats->ac_uid = from_kuid_munged(user_ns, tcred->uid); in bacct_add_tsk() 63 stats->ac_gid = from_kgid_munged(user_ns, tcred->gid); in bacct_add_tsk()
|
D | ptrace.c | 288 const struct cred *cred = current_cred(), *tcred; in __ptrace_may_access() local 326 tcred = __task_cred(task); in __ptrace_may_access() 327 if (uid_eq(caller_uid, tcred->euid) && in __ptrace_may_access() 328 uid_eq(caller_uid, tcred->suid) && in __ptrace_may_access() 329 uid_eq(caller_uid, tcred->uid) && in __ptrace_may_access() 330 gid_eq(caller_gid, tcred->egid) && in __ptrace_may_access() 331 gid_eq(caller_gid, tcred->sgid) && in __ptrace_may_access() 332 gid_eq(caller_gid, tcred->gid)) in __ptrace_may_access() 334 if (ptrace_has_cap(tcred->user_ns, mode)) in __ptrace_may_access()
|
D | sys.c | 1660 const struct cred *cred = current_cred(), *tcred; in check_prlimit_permission() local 1666 tcred = __task_cred(task); in check_prlimit_permission() 1667 id_match = (uid_eq(cred->uid, tcred->euid) && in check_prlimit_permission() 1668 uid_eq(cred->uid, tcred->suid) && in check_prlimit_permission() 1669 uid_eq(cred->uid, tcred->uid) && in check_prlimit_permission() 1670 gid_eq(cred->gid, tcred->egid) && in check_prlimit_permission() 1671 gid_eq(cred->gid, tcred->sgid) && in check_prlimit_permission() 1672 gid_eq(cred->gid, tcred->gid)); in check_prlimit_permission() 1673 if (!id_match && !ns_capable(tcred->user_ns, CAP_SYS_RESOURCE)) in check_prlimit_permission() 1676 return security_task_prlimit(cred, tcred, flags); in check_prlimit_permission()
|
D | signal.c | 829 const struct cred *tcred = __task_cred(t); in kill_ok_by_cred() local 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() 835 ns_capable(tcred->user_ns, CAP_KILL); in kill_ok_by_cred()
|
/kernel/cgroup/ |
D | cgroup-v1.c | 495 const struct cred *cred, *tcred; in __cgroup1_procs_write() local 514 tcred = get_task_cred(task); in __cgroup1_procs_write() 516 !uid_eq(cred->euid, tcred->uid) && in __cgroup1_procs_write() 517 !uid_eq(cred->euid, tcred->suid) && in __cgroup1_procs_write() 518 !ns_capable(tcred->user_ns, CAP_SYS_NICE)) in __cgroup1_procs_write() 520 put_cred(tcred); in __cgroup1_procs_write()
|