Lines Matching defs:child
267 * @parent: the process to compare against while walking up from child
268 * @child: the process to start from while looking upwards for parent
270 * Returns 1 if child is a descendant of parent, 0 if not.
273 struct task_struct *child)
276 struct task_struct *walker = child;
278 if (!parent || !child)
349 * @child: task that current task is attempting to ptrace
354 static int yama_ptrace_access_check(struct task_struct *child,
359 /* require ptrace target be a child of ptracer on attach */
367 if (!pid_alive(child))
369 if (!rc && !task_is_descendant(current, child) &&
370 !ptracer_exception_found(current, child) &&
371 !ns_capable(__task_cred(child)->user_ns, CAP_SYS_PTRACE))
377 if (!ns_capable(__task_cred(child)->user_ns, CAP_SYS_PTRACE))
389 report_access("attach", child, current);