child_cred 136 security/commoncap.c const struct cred *cred, *child_cred; child_cred 141 security/commoncap.c child_cred = __task_cred(child); child_cred 146 security/commoncap.c if (cred->user_ns == child_cred->user_ns && child_cred 147 security/commoncap.c cap_issubset(child_cred->cap_permitted, *caller_caps)) child_cred 149 security/commoncap.c if (ns_capable(child_cred->user_ns, CAP_SYS_PTRACE)) child_cred 173 security/commoncap.c const struct cred *cred, *child_cred; child_cred 177 security/commoncap.c child_cred = current_cred(); child_cred 178 security/commoncap.c if (cred->user_ns == child_cred->user_ns && child_cred 179 security/commoncap.c cap_issubset(child_cred->cap_permitted, cred->cap_permitted)) child_cred 181 security/commoncap.c if (has_ns_capability(parent, child_cred->user_ns, CAP_SYS_PTRACE))