Lines Matching full: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, in audit_caps() argument
76 ad->error = error; in audit_caps()
97 if (ad->subj_cred == ent->ad_subj_cred && ktime_get_ns() <= ent->ktime_ns_expiration[cap]) { in audit_caps()
104 ent->ad_subj_cred = get_cred(ad->subj_cred); in audit_caps()
109 return aa_audit(type, profile, ad, audit_cb); in audit_caps()
117 * @ad: audit data (NOT NULL)
122 unsigned int opts, struct apparmor_audit_data *ad) in profile_capable() argument
140 ad->info = "optional: no audit"; in profile_capable()
143 return audit_caps(ad, profile, cap, error); in profile_capable()
162 DEFINE_AUDIT_DATA(ad, LSM_AUDIT_DATA_CAP, AA_CLASS_CAP, OP_CAPABLE); in aa_capable()
164 ad.subj_cred = subj_cred; in aa_capable()
165 ad.common.u.cap = cap; in aa_capable()
167 profile_capable(profile, cap, opts, &ad)); in aa_capable()