Lines Matching refs:level

124 			   p_sens_val_to_name[context->range.level[l].sens -  in mls_compute_context_len()
127 ebitmap_for_each_bit(&context->range.level[l].cat, cnode, i) { in mls_compute_context_len()
151 if (mls_level_eq(&context->range.level[0], in mls_compute_context_len()
152 &context->range.level[1])) in mls_compute_context_len()
187 policydb->p_sens_val_to_name[context->range.level[l]. in mls_sid_to_context()
191 p_sens_val_to_name[context->range.level[l].sens - in mls_sid_to_context()
194 ebitmap_for_each_bit(&context->range.level[l].cat, cnode, i) { in mls_sid_to_context()
240 if (mls_level_eq(&context->range.level[0], in mls_sid_to_context()
241 &context->range.level[1])) in mls_sid_to_context()
274 if (!mls_level_dom(&c->range.level[1], &c->range.level[0])) in mls_context_isvalid()
279 if (!c->range.level[l].sens in mls_context_isvalid()
280 || c->range.level[l].sens > p->p_levels.nprim) in mls_context_isvalid()
285 [c->range.level[l]. in mls_context_isvalid()
290 ebitmap_for_each_bit(&c->range.level[l].cat, cnode, i) { in mls_context_isvalid()
294 if (!ebitmap_get_bit(&levdatum->level->cat, i)) in mls_context_isvalid()
363 context->range.level[l].sens = levdatum->level->sens; in mls_context_to_sid()
390 (&context->range.level[l].cat, in mls_context_to_sid()
413 (&context->range.level[l]. in mls_context_to_sid()
438 if (mls_level_cpy(&context->range.level[1], in mls_context_to_sid()
439 &context->range.level[0]) < 0) in mls_context_to_sid()
460 dst->range.level[l].sens = src->range.level[l].sens; in mls_copy_context()
461 rc = ebitmap_cpy(&dst->range.level[l].cat, in mls_copy_context()
462 &src->range.level[l].cat); in mls_copy_context()
480 dst->range.level[l].sens = src->range.level[0].sens; in mls_scopy_context()
481 rc = ebitmap_cpy(&dst->range.level[l].cat, in mls_scopy_context()
482 &src->range.level[0].cat); in mls_scopy_context()
499 context->range.level[l].sens = range->level[l].sens; in mls_range_set()
500 rc = ebitmap_cpy(&context->range.level[l].cat, in mls_range_set()
501 &range->level[l].cat); in mls_range_set()
513 mls_level_t *fromcon_sen = &(fromcon->range.level[0]); in mls_setup_user_range()
514 mls_level_t *fromcon_clr = &(fromcon->range.level[1]); in mls_setup_user_range()
515 mls_level_t *user_low = &(user->exp_range.level[0]); in mls_setup_user_range()
516 mls_level_t *user_clr = &(user->exp_range.level[1]); in mls_setup_user_range()
518 mls_level_t *usercon_sen = &(usercon->range.level[0]); in mls_setup_user_range()
519 mls_level_t *usercon_clr = &(usercon->range.level[1]); in mls_setup_user_range()
570 level in mls_convert_context()
577 c->range.level[l].sens = levdatum->level->sens; in mls_convert_context()
580 ebitmap_for_each_bit(&c->range.level[l].cat, cnode, i) { in mls_convert_context()
598 ebitmap_destroy(&c->range.level[l].cat); in mls_convert_context()
599 c->range.level[l].cat = bitmap; in mls_convert_context()
776 mls_semantic_level_init(&r->level[0]); in mls_semantic_range_init()
777 mls_semantic_level_init(&r->level[1]); in mls_semantic_range_init()
782 mls_semantic_level_destroy(&r->level[0]); in mls_semantic_range_destroy()
783 mls_semantic_level_destroy(&r->level[1]); in mls_semantic_range_destroy()
789 if (mls_semantic_level_cpy(&dst->level[0], &src->level[0]) < 0) in mls_semantic_range_cpy()
792 if (mls_semantic_level_cpy(&dst->level[1], &src->level[1]) < 0) { in mls_semantic_range_cpy()
793 mls_semantic_level_destroy(&dst->level[0]); in mls_semantic_range_cpy()