Lines Matching refs:tracer
77 struct aa_label *tracer, u32 request,
80 if (profile_unconfined(tracee) || unconfined(tracer) ||
84 return profile_ptrace_perm(tracee, tracer, request, sa);
87 static int profile_tracer_perm(struct aa_profile *tracer,
91 if (profile_unconfined(tracer))
94 if (PROFILE_MEDIATES(tracer, AA_CLASS_PTRACE))
95 return profile_ptrace_perm(tracer, tracee, request, sa);
98 if (&tracer->label == tracee)
101 aad(sa)->label = &tracer->label;
104 aad(sa)->error = aa_capable(&tracer->label, CAP_SYS_PTRACE,
107 return aa_audit(AUDIT_APPARMOR_AUTO, tracer, sa, audit_ptrace_cb);
111 * aa_may_ptrace - test if tracer task can trace the tracee
112 * @tracer: label of the task doing the tracing (NOT NULL)
118 int aa_may_ptrace(struct aa_label *tracer, struct aa_label *tracee,
125 return xcheck_labels(tracer, tracee, profile,
127 profile_tracee_perm(profile, tracer, xrequest, &sa));