Lines Matching refs:ad
148 DEFINE_AUDIT_DATA(ad, LSM_AUDIT_DATA_NONE, AA_CLASS_NONE, NULL); in aa_info_message()
150 ad.info = str; in aa_info_message()
151 aa_audit_msg(AUDIT_APPARMOR_STATUS, &ad, NULL); in aa_info_message()
286 struct apparmor_audit_data *ad = aad(sa); in aa_audit_perms_cb() local
288 if (ad->request) { in aa_audit_perms_cb()
290 aa_audit_perm_mask(ab, ad->request, aa_file_perm_chrs, in aa_audit_perms_cb()
294 if (ad->denied) { in aa_audit_perms_cb()
296 aa_audit_perm_mask(ab, ad->denied, aa_file_perm_chrs, in aa_audit_perms_cb()
301 aa_label_xaudit(ab, labels_ns(ad->subj_label), ad->peer, in aa_audit_perms_cb()
355 struct apparmor_audit_data *ad) in aa_profile_label_perm() argument
361 ad->peer = &target->label; in aa_profile_label_perm()
362 ad->request = request; in aa_profile_label_perm()
368 return aa_check_perms(profile, &perms, request, ad, aa_audit_perms_cb); in aa_profile_label_perm()
389 u32 request, struct apparmor_audit_data *ad, in aa_check_perms() argument
398 if (!request || !ad) in aa_check_perms()
417 if (!ad || !denied) in aa_check_perms()
421 if (ad) { in aa_check_perms()
422 ad->subj_label = &profile->label; in aa_check_perms()
423 ad->request = request; in aa_check_perms()
424 ad->denied = denied; in aa_check_perms()
425 ad->error = error; in aa_check_perms()
426 aa_audit_msg(type, ad, cb); in aa_check_perms()