Lines Matching refs:perm
198 u8 perm, u8 which) in avc_xperms_has_perm() argument
204 rc = security_xperm_test(xpd->allowed->p, perm); in avc_xperms_has_perm()
207 rc = security_xperm_test(xpd->auditallow->p, perm); in avc_xperms_has_perm()
210 rc = security_xperm_test(xpd->dontaudit->p, perm); in avc_xperms_has_perm()
215 u8 driver, u8 perm) in avc_xperms_allow_perm() argument
221 security_xperm_set(xpd->allowed->p, perm); in avc_xperms_allow_perm()
272 static inline void avc_quick_copy_xperms_decision(u8 perm, in avc_quick_copy_xperms_decision() argument
280 u8 i = perm >> 5; in avc_quick_copy_xperms_decision()
387 u8 perm, in avc_xperms_audit_required() argument
397 if (avc_xperms_has_perm(xpd, perm, XPERMS_DONTAUDIT)) in avc_xperms_audit_required()
405 if (!avc_xperms_has_perm(xpd, perm, XPERMS_AUDITALLOW)) in avc_xperms_audit_required()
418 u8 perm, int result, in avc_xperms_audit() argument
424 requested, avd, xpd, perm, result, &denied); in avc_xperms_audit()
667 int i, perm; in avc_audit_pre_callback() local
680 perm = 1; in avc_audit_pre_callback()
682 if ((perm & av) && perms[i]) { in avc_audit_pre_callback()
684 av &= ~perm; in avc_audit_pre_callback()
687 perm <<= 1; in avc_audit_pre_callback()