Lines Matching refs:tracer
248 struct aa_label *tracer, u32 request,
251 if (profile_unconfined(tracee) || unconfined(tracer) ||
255 return profile_ptrace_perm(cred, tracee, tracer, request, ad);
259 struct aa_profile *tracer,
263 if (profile_unconfined(tracer))
266 if (ANY_RULE_MEDIATES(&tracer->rules, AA_CLASS_PTRACE))
267 return profile_ptrace_perm(cred, tracer, tracee, request, ad);
270 if (&tracer->label == tracee)
273 ad->subj_label = &tracer->label;
276 ad->error = aa_capable(cred, &tracer->label, CAP_SYS_PTRACE,
279 return aa_audit(AUDIT_APPARMOR_AUTO, tracer, ad, audit_ptrace_cb);
283 * aa_may_ptrace - test if tracer task can trace the tracee
284 * @tracer: label of the task doing the tracing (NOT NULL)
290 int aa_may_ptrace(const struct cred *tracer_cred, struct aa_label *tracer,
298 return xcheck_labels(tracer, tracee, profile,
301 profile_tracee_perm(tracee_cred, profile, tracer,