Lines Matching refs:xperms
624 static int xperms_to_cil(const av_extended_perms_t *xperms) in xperms_to_cil() argument
633 if ((xperms->specified != AVTAB_XPERMS_IOCTLFUNCTION) in xperms_to_cil()
634 && (xperms->specified != AVTAB_XPERMS_IOCTLDRIVER)) in xperms_to_cil()
637 for (bit = 0; bit < sizeof(xperms->perms)*8; bit++) { in xperms_to_cil()
638 if (!xperm_test(bit, xperms->perms)) in xperms_to_cil()
641 if (in_range && next_bit_in_range(bit, xperms->perms)) { in xperms_to_cil()
644 } else if (next_bit_in_range(bit, xperms->perms)) { in xperms_to_cil()
656 if (xperms->specified & AVTAB_XPERMS_IOCTLFUNCTION) { in xperms_to_cil()
657 value = xperms->driver<<8 | bit; in xperms_to_cil()
659 low_value = xperms->driver<<8 | low_bit; in xperms_to_cil()
665 } else if (xperms->specified & AVTAB_XPERMS_IOCTLDRIVER) { in xperms_to_cil()
680 …char *src, const char *tgt, const class_perm_node_t *classperms, const av_extended_perms_t *xperms) in avrulex_to_cil() argument
709 xperms_to_cil(xperms); in avrulex_to_cil()
1223 …vrulex_to_cil(indent, pdb, avrule->specified, snames[s], tnames[t], avrule->perms, avrule->xperms); in avrule_list_to_cil()
1234 …= avrulex_to_cil(indent, pdb, avrule->specified, snames[s], "self", avrule->perms, avrule->xperms); in avrule_list_to_cil()