Lines Matching refs:perm
204 u8 perm, u8 which) in avc_xperms_has_perm() argument
210 rc = security_xperm_test(xpd->allowed->p, perm); in avc_xperms_has_perm()
213 rc = security_xperm_test(xpd->auditallow->p, perm); in avc_xperms_has_perm()
216 rc = security_xperm_test(xpd->dontaudit->p, perm); in avc_xperms_has_perm()
221 u8 driver, u8 perm) in avc_xperms_allow_perm() argument
227 security_xperm_set(xpd->allowed->p, perm); in avc_xperms_allow_perm()
278 static inline void avc_quick_copy_xperms_decision(u8 perm, in avc_quick_copy_xperms_decision() argument
286 u8 i = perm >> 5; in avc_quick_copy_xperms_decision()
393 u8 perm, in avc_xperms_audit_required() argument
403 if (avc_xperms_has_perm(xpd, perm, XPERMS_DONTAUDIT)) in avc_xperms_audit_required()
411 if (!avc_xperms_has_perm(xpd, perm, XPERMS_AUDITALLOW)) in avc_xperms_audit_required()
424 u8 perm, int result, in avc_xperms_audit() argument
430 requested, avd, xpd, perm, result, &denied); in avc_xperms_audit()
680 int i, perm; in avc_audit_pre_callback() local
693 perm = 1; in avc_audit_pre_callback()
695 if ((perm & av) && perms[i]) { in avc_audit_pre_callback()
697 av &= ~perm; in avc_audit_pre_callback()
700 perm <<= 1; in avc_audit_pre_callback()