Searched refs:child_cred (Results 1 – 1 of 1) sorted by relevance
138 const struct cred *cred, *child_cred; in cap_ptrace_access_check() local143 child_cred = __task_cred(child); in cap_ptrace_access_check()148 if (cred->user_ns == child_cred->user_ns && in cap_ptrace_access_check()149 cap_issubset(child_cred->cap_permitted, *caller_caps)) in cap_ptrace_access_check()151 if (ns_capable(child_cred->user_ns, CAP_SYS_PTRACE)) in cap_ptrace_access_check()175 const struct cred *cred, *child_cred; in cap_ptrace_traceme() local179 child_cred = current_cred(); in cap_ptrace_traceme()180 if (cred->user_ns == child_cred->user_ns && in cap_ptrace_traceme()181 cap_issubset(child_cred->cap_permitted, cred->cap_permitted)) in cap_ptrace_traceme()183 if (has_ns_capability(parent, child_cred->user_ns, CAP_SYS_PTRACE)) in cap_ptrace_traceme()