Lines Matching refs:xperms
611 static int xperms_to_cil(const av_extended_perms_t *xperms) in xperms_to_cil() argument
620 if ((xperms->specified != AVTAB_XPERMS_IOCTLFUNCTION) in xperms_to_cil()
621 && (xperms->specified != AVTAB_XPERMS_IOCTLDRIVER)) in xperms_to_cil()
624 for (bit = 0; bit < sizeof(xperms->perms)*8; bit++) { in xperms_to_cil()
625 if (!xperm_test(bit, xperms->perms)) in xperms_to_cil()
628 if (in_range && next_bit_in_range(bit, xperms->perms)) { in xperms_to_cil()
631 } else if (next_bit_in_range(bit, xperms->perms)) { in xperms_to_cil()
643 if (xperms->specified & AVTAB_XPERMS_IOCTLFUNCTION) { in xperms_to_cil()
644 value = xperms->driver<<8 | bit; in xperms_to_cil()
645 low_value = xperms->driver<<8 | low_bit; in xperms_to_cil()
652 } else if (xperms->specified & AVTAB_XPERMS_IOCTLDRIVER) { in xperms_to_cil()
667 …char *src, const char *tgt, const class_perm_node_t *classperms, const av_extended_perms_t *xperms) in avrulex_to_cil() argument
696 xperms_to_cil(xperms); in avrulex_to_cil()
1195 …vrulex_to_cil(indent, pdb, avrule->specified, snames[s], tnames[t], avrule->perms, avrule->xperms); in avrule_list_to_cil()
1206 …= avrulex_to_cil(indent, pdb, avrule->specified, snames[s], "self", avrule->perms, avrule->xperms); in avrule_list_to_cil()