Lines Matching refs:ad
56 * @ad: audit data
64 * Returns: 0 or ad->error on success, error code on failure
66 static int audit_caps(struct apparmor_audit_data *ad, struct aa_profile *profile,
76 ad->error = error;
97 if (ad->subj_cred == ent->ad_subj_cred && ktime_get_ns() <= ent->ktime_ns_expiration[cap]) {
104 ent->ad_subj_cred = get_cred(ad->subj_cred);
109 return aa_audit(type, profile, ad, audit_cb);
117 * @ad: audit data (NOT NULL)
122 unsigned int opts, struct apparmor_audit_data *ad)
140 ad->info = "optional: no audit";
143 return audit_caps(ad, profile, cap, error);
162 DEFINE_AUDIT_DATA(ad, LSM_AUDIT_DATA_CAP, AA_CLASS_CAP, OP_CAPABLE);
164 ad.subj_cred = subj_cred;
165 ad.common.u.cap = cap;
167 profile_capable(profile, cap, opts, &ad));