Lines Matching refs:ad
211 struct apparmor_audit_data *ad = aad(sa); in audit_ptrace_cb() local
213 if (ad->request & AA_PTRACE_PERM_MASK) { in audit_ptrace_cb()
215 audit_ptrace_mask(ad->request)); in audit_ptrace_cb()
217 if (ad->denied & AA_PTRACE_PERM_MASK) { in audit_ptrace_cb()
219 audit_ptrace_mask(ad->denied)); in audit_ptrace_cb()
223 aa_label_xaudit(ab, labels_ns(ad->subj_label), ad->peer, in audit_ptrace_cb()
232 struct apparmor_audit_data *ad) in profile_ptrace_perm() argument
238 ad->subj_cred = cred; in profile_ptrace_perm()
239 ad->peer = peer; in profile_ptrace_perm()
243 return aa_check_perms(profile, &perms, request, ad, audit_ptrace_cb); in profile_ptrace_perm()
249 struct apparmor_audit_data *ad) in profile_tracee_perm() argument
255 return profile_ptrace_perm(cred, tracee, tracer, request, ad); in profile_tracee_perm()
261 struct apparmor_audit_data *ad) in profile_tracer_perm() argument
267 return profile_ptrace_perm(cred, tracer, tracee, request, ad); in profile_tracer_perm()
273 ad->subj_label = &tracer->label; in profile_tracer_perm()
274 ad->peer = tracee; in profile_tracer_perm()
275 ad->request = 0; in profile_tracer_perm()
276 ad->error = aa_capable(cred, &tracer->label, CAP_SYS_PTRACE, in profile_tracer_perm()
279 return aa_audit(AUDIT_APPARMOR_AUTO, tracer, ad, audit_ptrace_cb); in profile_tracer_perm()