Lines Matching refs:cap
49 audit_log_untrustedstring(ab, capability_names[sa->u.cap]); in audit_cb()
65 int cap, int error) in audit_caps() argument
77 !cap_raised(rules->caps.audit, cap))) in audit_caps()
81 cap_raised(rules->caps.kill, cap)) { in audit_caps()
83 } else if (cap_raised(rules->caps.quiet, cap) && in audit_caps()
92 if (profile == ent->profile && cap_raised(ent->caps, cap)) { in audit_caps()
100 cap_raise(ent->caps, cap); in audit_caps()
116 static int profile_capable(struct aa_profile *profile, int cap, in profile_capable() argument
123 if (cap_raised(rules->caps.allow, cap) && in profile_capable()
124 !cap_raised(rules->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, unsigned int opts) in aa_capable() argument
157 sa.u.cap = cap; in aa_capable()
159 profile_capable(profile, cap, opts, &sa)); in aa_capable()