Home | History | Annotate | Download | only in src

Lines Matching refs:xperms

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