Lines Matching refs:cap
51 audit_log_untrustedstring(ab, capability_names[sa->u.cap]); in audit_cb()
65 static int audit_caps(struct aa_profile *profile, int cap, int error) in audit_caps() argument
73 sa.u.cap = cap; in audit_caps()
80 !cap_raised(profile->caps.audit, cap))) in audit_caps()
84 cap_raised(profile->caps.kill, cap)) { in audit_caps()
86 } else if (cap_raised(profile->caps.quiet, cap) && in audit_caps()
95 if (profile == ent->profile && cap_raised(ent->caps, cap)) { in audit_caps()
103 cap_raise(ent->caps, cap); in audit_caps()
117 static int profile_capable(struct aa_profile *profile, int cap) in profile_capable() argument
119 return cap_raised(profile->caps.allow, cap) ? 0 : -EPERM; in profile_capable()
132 int aa_capable(struct aa_profile *profile, int cap, int audit) in aa_capable() argument
134 int error = profile_capable(profile, cap); in aa_capable()
142 return audit_caps(profile, cap, error); in aa_capable()