Lines Matching defs:range
24 * identity, a role, a type and a MLS range.
31 struct mls_range range;
37 memset(&c->range, 0, sizeof(c->range));
44 dst->range.level[0].sens = src->range.level[0].sens;
45 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat);
49 dst->range.level[1].sens = src->range.level[1].sens;
50 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[1].cat);
52 ebitmap_destroy(&dst->range.level[0].cat);
58 * Sets both levels in the MLS range of 'dst' to the low level of 'src'.
64 dst->range.level[0].sens = src->range.level[0].sens;
65 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat);
69 dst->range.level[1].sens = src->range.level[0].sens;
70 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[0].cat);
72 ebitmap_destroy(&dst->range.level[0].cat);
79 return ((c1->range.level[0].sens == c2->range.level[0].sens) &&
80 ebitmap_cmp(&c1->range.level[0].cat, &c2->range.level[0].cat) &&
81 (c1->range.level[1].sens == c2->range.level[1].sens) &&
82 ebitmap_cmp(&c1->range.level[1].cat, &c2->range.level[1].cat));
87 ebitmap_destroy(&c->range.level[0].cat);
88 ebitmap_destroy(&c->range.level[1].cat);