Home
last modified time | relevance | path

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

/openbmc/linux/security/
H A Dcommoncap.c137 const struct cred *cred, *child_cred; in cap_ptrace_access_check() local
142 child_cred = __task_cred(child); in cap_ptrace_access_check()
147 if (cred->user_ns == child_cred->user_ns && in cap_ptrace_access_check()
148 cap_issubset(child_cred->cap_permitted, *caller_caps)) in cap_ptrace_access_check()
150 if (ns_capable(child_cred->user_ns, CAP_SYS_PTRACE)) in cap_ptrace_access_check()
174 const struct cred *cred, *child_cred; in cap_ptrace_traceme() local
178 child_cred = current_cred(); in cap_ptrace_traceme()
179 if (cred->user_ns == child_cred->user_ns && in cap_ptrace_traceme()
180 cap_issubset(child_cred->cap_permitted, cred->cap_permitted)) in cap_ptrace_traceme()
182 if (has_ns_capability(parent, child_cred->user_ns, CAP_SYS_PTRACE)) in cap_ptrace_traceme()