has_ns_capability
extern bool has_ns_capability(struct task_struct *t,
if (has_ns_capability(parent, child_cred->user_ns, CAP_SYS_PTRACE))
if (!has_ns_capability(parent, current_user_ns(), CAP_SYS_PTRACE))