Lines Matching refs:tracer
77 struct aa_label *tracer, u32 request, in profile_tracee_perm() argument
80 if (profile_unconfined(tracee) || unconfined(tracer) || in profile_tracee_perm()
84 return profile_ptrace_perm(tracee, tracer, request, sa); in profile_tracee_perm()
87 static int profile_tracer_perm(struct aa_profile *tracer, in profile_tracer_perm() argument
91 if (profile_unconfined(tracer)) in profile_tracer_perm()
94 if (PROFILE_MEDIATES(tracer, AA_CLASS_PTRACE)) in profile_tracer_perm()
95 return profile_ptrace_perm(tracer, tracee, request, sa); in profile_tracer_perm()
98 if (&tracer->label == tracee) in profile_tracer_perm()
101 aad(sa)->label = &tracer->label; in profile_tracer_perm()
104 aad(sa)->error = aa_capable(&tracer->label, CAP_SYS_PTRACE, in profile_tracer_perm()
107 return aa_audit(AUDIT_APPARMOR_AUTO, tracer, sa, audit_ptrace_cb); in profile_tracer_perm()
118 int aa_may_ptrace(struct aa_label *tracer, struct aa_label *tracee, in aa_may_ptrace() argument
125 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace()
127 profile_tracee_perm(profile, tracer, xrequest, &sa)); in aa_may_ptrace()