Lines Matching refs:ad
94 struct apparmor_audit_data *ad = aad_of_va(va);
98 aa_audit_type[ad->type]);
101 if (ad->op)
102 audit_log_format(ab, " operation=\"%s\"", ad->op);
104 if (ad->class)
106 ad->class <= AA_CLASS_LAST ?
107 aa_class_names[ad->class] :
110 if (ad->info) {
111 audit_log_format(ab, " info=\"%s\"", ad->info);
112 if (ad->error)
113 audit_log_format(ab, " error=%d", ad->error);
116 if (ad->subj_label) {
117 struct aa_label *label = ad->subj_label;
136 if (ad->name) {
138 audit_log_untrustedstring(ab, ad->name);
145 * @ad: audit event structure (NOT NULL)
148 void aa_audit_msg(int type, struct apparmor_audit_data *ad,
151 ad->type = type;
152 common_lsm_audit(&ad->common, audit_pre, cb);
159 * @ad: audit event (NOT NULL)
167 struct apparmor_audit_data *ad,
173 if (likely(!ad->error)) {
185 return ad->error;
190 ad->subj_label = &profile->label;
192 aa_audit_msg(type, ad, cb);
194 if (ad->type == AUDIT_APPARMOR_KILL)
196 ad->common.type == LSM_AUDIT_DATA_TASK &&
197 ad->common.u.tsk ? ad->common.u.tsk : current);
199 if (ad->type == AUDIT_APPARMOR_ALLOWED)
200 return complain_error(ad->error);
202 return ad->error;