Lines Matching refs:ad
54 * @ad: audit data
62 * Returns: 0 or ad->error on success, error code on failure
64 static int audit_caps(struct apparmor_audit_data *ad, struct aa_profile *profile,
72 ad->error = error;
104 return aa_audit(type, profile, ad, audit_cb);
112 * @ad: audit data (MAY BE NULL indicating no auditing)
117 unsigned int opts, struct apparmor_audit_data *ad)
135 ad->info = "optional: no audit";
138 return audit_caps(ad, profile, cap, error);
157 DEFINE_AUDIT_DATA(ad, LSM_AUDIT_DATA_CAP, AA_CLASS_CAP, OP_CAPABLE);
159 ad.subj_cred = subj_cred;
160 ad.common.u.cap = cap;
162 profile_capable(profile, cap, opts, &ad));