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(cred, tracee, tracer, request, ad); in profile_tracee_perm()
255 struct aa_profile *tracer, in profile_tracer_perm() argument
259 if (profile_unconfined(tracer)) in profile_tracer_perm()
262 if (label_mediates(&tracer->label, AA_CLASS_PTRACE)) in profile_tracer_perm()
263 return profile_ptrace_perm(cred, tracer, tracee, request, ad); in profile_tracer_perm()
266 if (&tracer->label == tracee) in profile_tracer_perm()
269 ad->subj_label = &tracer->label; in profile_tracer_perm()
272 ad->error = aa_capable(cred, &tracer->label, CAP_SYS_PTRACE, in profile_tracer_perm()
275 return aa_audit(AUDIT_APPARMOR_AUTO, tracer, ad, audit_ptrace_cb); in profile_tracer_perm()
288 int aa_may_ptrace(const struct cred *tracer_cred, struct aa_label *tracer, in aa_may_ptrace() argument
296 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace()
299 profile_tracee_perm(tracee_cred, profile, tracer, in aa_may_ptrace()