Lines Matching refs:cap
53 audit_log_untrustedstring(ab, capability_names[sa->u.cap]); in audit_cb()
69 int cap, int error) in audit_caps() argument
79 !cap_raised(profile->caps.audit, cap))) in audit_caps()
83 cap_raised(profile->caps.kill, cap)) { in audit_caps()
85 } else if (cap_raised(profile->caps.quiet, cap) && in audit_caps()
94 if (profile == ent->profile && cap_raised(ent->caps, cap)) { in audit_caps()
102 cap_raise(ent->caps, cap); in audit_caps()
118 static int profile_capable(struct aa_profile *profile, int cap, int audit, in profile_capable() argument
123 if (cap_raised(profile->caps.allow, cap) && in profile_capable()
124 !cap_raised(profile->caps.denied, cap)) in profile_capable()
138 return audit_caps(sa, profile, cap, error); in profile_capable()
151 int aa_capable(struct aa_label *label, int cap, int audit) in aa_capable() argument
157 sa.u.cap = cap; in aa_capable()
159 profile_capable(profile, cap, audit, &sa)); in aa_capable()