Lines Matching defs:range
47 int index_sens = context->range.level[l].sens;
53 e = &context->range.level[l].cat;
72 if (mls_level_eq(&context->range.level[0],
73 &context->range.level[1]))
106 policydb.p_sens_val_to_name[context->range.level[l].sens - 1]);
112 e = &context->range.level[l].cat;
148 if (mls_level_eq(&context->range.level[0],
149 &context->range.level[1]))
206 if (!mls_range_isvalid(p, &c->range))
213 * User must be authorized for the MLS range.
218 if (!mls_range_contains(usrdatum->range, c->range))
219 return 0; /* user may not be associated with range */
296 context->range.level[l].sens = levdatum->level->sens;
308 /* Separate into range if exists */
322 rc = ebitmap_set_bit(&context->range.level[l].cat,
327 /* If range, set all categories in range */
343 rc = ebitmap_set_bit(&context->range.level[l].cat, i, 1);
367 context->range.level[1].sens = context->range.level[0].sens;
368 rc = ebitmap_cpy(&context->range.level[1].cat,
369 &context->range.level[0].cat);
408 * Copies the MLS range `range' into `context'.
411 struct mls_range *range)
415 /* Copy the MLS range into the context */
417 context->range.level[l].sens = range->level[l].sens;
418 rc = ebitmap_cpy(&context->range.level[l].cat,
419 &range->level[l].cat);
431 struct mls_level *fromcon_sen = &(fromcon->range.level[0]);
432 struct mls_level *fromcon_clr = &(fromcon->range.level[1]);
433 struct mls_level *user_low = &(user->range.level[0]);
434 struct mls_level *user_clr = &(user->range.level[1]);
436 struct mls_level *usercon_sen = &(usercon->range.level[0]);
437 struct mls_level *usercon_clr = &(usercon->range.level[1]);
485 oldp->p_sens_val_to_name[c->range.level[l].sens - 1]);
489 c->range.level[l].sens = levdatum->level->sens;
492 ebitmap_for_each_positive_bit(&c->range.level[l].cat, node, i) {
503 ebitmap_destroy(&c->range.level[l].cat);
504 c->range.level[l].cat = bitmap;
524 /* Look for a range transition rule. */
565 secattr->attr.mls.lvl = context->range.level[0].sens - 1;
585 context->range.level[0].sens = secattr->attr.mls.lvl + 1;
586 context->range.level[1].sens = context->range.level[0].sens;
607 rc = ebitmap_netlbl_export(&context->range.level[0].cat,
635 rc = ebitmap_netlbl_import(&context->range.level[0].cat,
640 rc = ebitmap_cpy(&context->range.level[1].cat,
641 &context->range.level[0].cat);
648 ebitmap_destroy(&context->range.level[0].cat);
649 ebitmap_destroy(&context->range.level[1].cat);