Lines Matching defs:parent
26 * @parent: Parent domain.
27 * @child: Potential child of @parent.
29 * Checks if the @parent domain is less or equal to (i.e. an ancestor, which
32 static bool domain_scope_le(const struct landlock_ruleset *const parent,
37 if (!parent)
41 for (walker = child->hierarchy; walker; walker = walker->parent) {
42 if (walker == parent->hierarchy)
43 /* @parent is in the scoped hierarchy of @child. */
46 /* There is no relationship between @parent and @child. */
50 static bool task_is_scoped(const struct task_struct *const parent,
57 dom_parent = landlock_get_task_domain(parent);
64 static int task_ptrace(const struct task_struct *const parent,
68 if (!landlocked(parent))
70 if (task_is_scoped(parent, child))
98 * @parent: Task proposed to be the tracer.
100 * If the parent has Landlock rules, then the current task must have the same
106 static int hook_ptrace_traceme(struct task_struct *const parent)
108 return task_ptrace(parent, current);