Lines Matching refs:cat
54 e = &context->range.level[l].cat; in mls_compute_context_len()
113 e = &context->range.level[l].cat; in mls_sid_to_context()
177 return ebitmap_contains(&levdatum->level->cat, &l->cat, in mls_level_isvalid()
315 rc = ebitmap_set_bit(&context->range.level[l].cat, in mls_context_to_sid()
336 rc = ebitmap_set_bit(&context->range.level[l].cat, i, 1); in mls_context_to_sid()
361 rc = ebitmap_cpy(&context->range.level[1].cat, in mls_context_to_sid()
362 &context->range.level[0].cat); in mls_context_to_sid()
411 rc = ebitmap_cpy(&context->range.level[l].cat, in mls_range_set()
412 &range->level[l].cat); in mls_range_set()
486 ebitmap_for_each_positive_bit(&c->range.level[l].cat, node, i) { in mls_convert_context()
499 ebitmap_destroy(&c->range.level[l].cat); in mls_convert_context()
500 c->range.level[l].cat = bitmap; in mls_convert_context()
628 rc = ebitmap_netlbl_export(&context->range.level[0].cat, in mls_export_netlbl_cat()
629 &secattr->attr.mls.cat); in mls_export_netlbl_cat()
630 if (rc == 0 && secattr->attr.mls.cat != NULL) in mls_export_netlbl_cat()
656 rc = ebitmap_netlbl_import(&context->range.level[0].cat, in mls_import_netlbl_cat()
657 secattr->attr.mls.cat); in mls_import_netlbl_cat()
660 memcpy(&context->range.level[1].cat, &context->range.level[0].cat, in mls_import_netlbl_cat()
661 sizeof(context->range.level[0].cat)); in mls_import_netlbl_cat()
666 ebitmap_destroy(&context->range.level[0].cat); in mls_import_netlbl_cat()