Lines Matching refs:tracer
53 * aa_may_ptrace - test if tracer task can trace the tracee
55 * @tracer: profile of the task doing the tracing (NOT NULL)
61 int aa_may_ptrace(struct task_struct *tracer_task, struct aa_profile *tracer,
69 if (unconfined(tracer) || tracer == tracee)
72 return aa_capable(tracer_task, tracer, CAP_SYS_PTRACE, 1);
77 * @tracer: task doing the tracing (NOT NULL)
83 int aa_ptrace(struct task_struct *tracer, struct task_struct *tracee,
87 * tracer can ptrace tracee when
88 * - tracer is unconfined ||
89 * - tracer is in complain mode
90 * - tracer has rules allowing it to trace tracee currently this is:
92 * - tracer profile has CAP_SYS_PTRACE
97 const struct cred *cred = get_task_cred(tracer);
106 error = aa_may_ptrace(tracer, tracer_p, tracee_p, mode);