Lines Matching refs:tracer
79 struct aa_label *tracer, u32 request, in profile_tracee_perm() argument
82 if (profile_unconfined(tracee) || unconfined(tracer) || in profile_tracee_perm()
86 return profile_ptrace_perm(tracee, tracer, request, sa); in profile_tracee_perm()
89 static int profile_tracer_perm(struct aa_profile *tracer, in profile_tracer_perm() argument
93 if (profile_unconfined(tracer)) in profile_tracer_perm()
96 if (PROFILE_MEDIATES(tracer, AA_CLASS_PTRACE)) in profile_tracer_perm()
97 return profile_ptrace_perm(tracer, tracee, request, sa); in profile_tracer_perm()
100 if (&tracer->label == tracee) in profile_tracer_perm()
103 aad(sa)->label = &tracer->label; in profile_tracer_perm()
106 aad(sa)->error = aa_capable(&tracer->label, CAP_SYS_PTRACE, in profile_tracer_perm()
109 return aa_audit(AUDIT_APPARMOR_AUTO, tracer, sa, audit_ptrace_cb); in profile_tracer_perm()
120 int aa_may_ptrace(struct aa_label *tracer, struct aa_label *tracee, in aa_may_ptrace() argument
127 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace()
129 profile_tracee_perm(profile, tracer, xrequest, &sa)); in aa_may_ptrace()