Lines Matching refs:tracer
242 struct aa_label *tracer, u32 request, in profile_tracee_perm() argument
245 if (profile_unconfined(tracee) || unconfined(tracer) || in profile_tracee_perm()
249 return profile_ptrace_perm(tracee, tracer, request, sa); in profile_tracee_perm()
252 static int profile_tracer_perm(struct aa_profile *tracer, in profile_tracer_perm() argument
256 if (profile_unconfined(tracer)) in profile_tracer_perm()
259 if (PROFILE_MEDIATES(tracer, AA_CLASS_PTRACE)) in profile_tracer_perm()
260 return profile_ptrace_perm(tracer, tracee, request, sa); in profile_tracer_perm()
263 if (&tracer->label == tracee) in profile_tracer_perm()
266 aad(sa)->label = &tracer->label; in profile_tracer_perm()
269 aad(sa)->error = aa_capable(&tracer->label, CAP_SYS_PTRACE, in profile_tracer_perm()
272 return aa_audit(AUDIT_APPARMOR_AUTO, tracer, sa, audit_ptrace_cb); in profile_tracer_perm()
283 int aa_may_ptrace(struct aa_label *tracer, struct aa_label *tracee, in aa_may_ptrace() argument
290 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace()
292 profile_tracee_perm(profile, tracer, xrequest, &sa)); in aa_may_ptrace()