Lines Matching refs:tracer
83 struct aa_label *tracer, u32 request, in profile_tracee_perm() argument
86 if (profile_unconfined(tracee) || unconfined(tracer) || in profile_tracee_perm()
90 return profile_ptrace_perm(tracee, tracer, request, sa); in profile_tracee_perm()
93 static int profile_tracer_perm(struct aa_profile *tracer, in profile_tracer_perm() argument
97 if (profile_unconfined(tracer)) in profile_tracer_perm()
100 if (PROFILE_MEDIATES(tracer, AA_CLASS_PTRACE)) in profile_tracer_perm()
101 return profile_ptrace_perm(tracer, tracee, request, sa); in profile_tracer_perm()
104 if (&tracer->label == tracee) in profile_tracer_perm()
107 aad(sa)->label = &tracer->label; in profile_tracer_perm()
110 aad(sa)->error = aa_capable(&tracer->label, CAP_SYS_PTRACE, 1); in profile_tracer_perm()
112 return aa_audit(AUDIT_APPARMOR_AUTO, tracer, sa, audit_ptrace_cb); in profile_tracer_perm()
123 int aa_may_ptrace(struct aa_label *tracer, struct aa_label *tracee, in aa_may_ptrace() argument
130 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace()
132 profile_tracee_perm(profile, tracer, xrequest, &sa)); in aa_may_ptrace()