Lines Matching refs:tracer
245 struct aa_label *tracer, u32 request, in profile_tracee_perm() argument
248 if (profile_unconfined(tracee) || unconfined(tracer) || in profile_tracee_perm()
252 return profile_ptrace_perm(cred, tracee, tracer, request, ad); in profile_tracee_perm()
256 struct aa_profile *tracer, in profile_tracer_perm() argument
260 if (profile_unconfined(tracer)) in profile_tracer_perm()
263 if (ANY_RULE_MEDIATES(&tracer->rules, AA_CLASS_PTRACE)) in profile_tracer_perm()
264 return profile_ptrace_perm(cred, tracer, tracee, request, ad); in profile_tracer_perm()
267 if (&tracer->label == tracee) in profile_tracer_perm()
270 ad->subj_label = &tracer->label; in profile_tracer_perm()
273 ad->error = aa_capable(cred, &tracer->label, CAP_SYS_PTRACE, in profile_tracer_perm()
276 return aa_audit(AUDIT_APPARMOR_AUTO, tracer, ad, audit_ptrace_cb); in profile_tracer_perm()
289 int aa_may_ptrace(const struct cred *tracer_cred, struct aa_label *tracer, in aa_may_ptrace() argument
297 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace()
300 profile_tracee_perm(tracee_cred, profile, tracer, in aa_may_ptrace()