Lines Matching defs:child
268 * @parent: the process to compare against while walking up from child
269 * @child: the process to start from while looking upwards for parent
271 * Returns 1 if child is a descendant of parent, 0 if not.
274 struct task_struct *child)
277 struct task_struct *walker = child;
279 if (!parent || !child)
350 * @child: task that current task is attempting to ptrace
355 static int yama_ptrace_access_check(struct task_struct *child,
360 /* require ptrace target be a child of ptracer on attach */
368 if (!pid_alive(child))
370 if (!rc && !task_is_descendant(current, child) &&
371 !ptracer_exception_found(current, child) &&
372 !ns_capable(__task_cred(child)->user_ns, CAP_SYS_PTRACE))
378 if (!ns_capable(__task_cred(child)->user_ns, CAP_SYS_PTRACE))
390 report_access("attach", child, current);