Lines Matching refs:cap
49 audit_log_untrustedstring(ab, capability_names[sa->u.cap]);
56 * @cap: capability tested
65 int cap, int error)
77 !cap_raised(rules->caps.audit, cap)))
81 cap_raised(rules->caps.kill, cap)) {
83 } else if (cap_raised(rules->caps.quiet, cap) &&
92 if (profile == ent->profile && cap_raised(ent->caps, cap)) {
100 cap_raise(ent->caps, cap);
108 * profile_capable - test if profile allows use of capability @cap
110 * @cap: capability to test if allowed
116 static int profile_capable(struct aa_profile *profile, int cap,
123 if (cap_raised(rules->caps.allow, cap) &&
124 !cap_raised(rules->caps.denied, cap))
132 /* audit the cap request in complain mode but note that it
138 return audit_caps(ad, profile, cap, error);
145 * @cap: capability to be tested
153 int cap, unsigned int opts)
160 ad.common.u.cap = cap;
162 profile_capable(profile, cap, opts, &ad));