Lines Matching refs:tracer
244 struct aa_label *tracer, u32 request, in profile_tracee_perm() argument
247 if (profile_unconfined(tracee) || unconfined(tracer) || in profile_tracee_perm()
251 return profile_ptrace_perm(tracee, tracer, request, sa); in profile_tracee_perm()
254 static int profile_tracer_perm(struct aa_profile *tracer, in profile_tracer_perm() argument
258 if (profile_unconfined(tracer)) in profile_tracer_perm()
261 if (ANY_RULE_MEDIATES(&tracer->rules, AA_CLASS_PTRACE)) in profile_tracer_perm()
262 return profile_ptrace_perm(tracer, tracee, request, sa); in profile_tracer_perm()
265 if (&tracer->label == tracee) in profile_tracer_perm()
268 aad(sa)->label = &tracer->label; in profile_tracer_perm()
271 aad(sa)->error = aa_capable(&tracer->label, CAP_SYS_PTRACE, in profile_tracer_perm()
274 return aa_audit(AUDIT_APPARMOR_AUTO, tracer, sa, audit_ptrace_cb); in profile_tracer_perm()
285 int aa_may_ptrace(struct aa_label *tracer, struct aa_label *tracee, in aa_may_ptrace() argument
292 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace()
294 profile_tracee_perm(profile, tracer, xrequest, &sa)); in aa_may_ptrace()