Lines Matching refs:tracer
31 struct task_struct *tracer;
132 * yama_ptracer_add - add/replace an exception for this tracer/tracee pair
133 * @tracer: the task_struct of the process doing the ptrace
136 * Each tracee can have, at most, one tracer registered. Each time this
137 * is called, the prior registered tracer will be replaced for the tracee.
141 static int yama_ptracer_add(struct task_struct *tracer,
151 added->tracer = tracer;
176 * @tracer: remove any relation where tracer task matches
179 static void yama_ptracer_del(struct task_struct *tracer,
190 (tracer && relation->tracer == tracer)) {
231 * process-level granularity of control. The tracer group
247 struct task_struct *tracer;
249 tracer = find_get_task_by_vpid(arg2);
250 if (!tracer) {
253 rc = yama_ptracer_add(tracer, myself);
254 put_task_struct(tracer);
299 * ptracer_exception_found - tracer registered as exception for this tracee
300 * @tracer: the task_struct of the process attempting ptrace
303 * Returns 1 if tracer has a ptracer exception ancestor for tracee.
305 static int ptracer_exception_found(struct task_struct *tracer,
320 if (parent != NULL && same_thread_group(parent, tracer)) {
332 parent = relation->tracer;
338 if (found && (parent == NULL || task_is_descendant(parent, tracer)))