Lines Matching refs:mls_level
884 mls_level_t *mls_level = NULL;
889 mls_level = cil_malloc(sizeof(*mls_level));
891 mls_level_init(mls_level);
898 mls_level->sens = value;
899 sepol_level->level = mls_level;
906 mls_level_destroy(mls_level);
908 free(mls_level);
917 mls_level_t *mls_level = NULL;
931 mls_level = cil_malloc(sizeof(*mls_level));
932 mls_level_init(mls_level);
934 rc = mls_level_cpy(mls_level, sepol_level->level);
938 sepol_alias->level = mls_level;
2416 int __cil_cats_to_mls_level(policydb_t *pdb, struct cil_cats *cats, mls_level_t *mls_level)
2431 rc = ebitmap_set_bit(&mls_level->cat, sepol_cat->s.value - 1, 1);
2438 rc = ebitmap_set_bit(&mls_level->cat, sepol_cat->s.value - 1, 1);
2454 mls_level_t *mls_level = NULL;
2459 mls_level = sepol_level->level;
2461 ebitmap_init(&mls_level->cat);
2466 rc = __cil_cats_to_mls_level(pdb, cats, mls_level);
2482 int cil_level_to_mls_level(policydb_t *pdb, struct cil_level *cil_level, mls_level_t *mls_level)
2492 mls_level->sens = sepol_level->level->sens;
2494 ebitmap_init(&mls_level->cat);
2497 rc = __cil_cats_to_mls_level(pdb, cats, mls_level);
2514 mls_level_t *mls_level = NULL;
2516 mls_level = &mls_range->level[0];
2518 rc = cil_level_to_mls_level(pdb, low, mls_level);
2523 mls_level = &mls_range->level[1];
2525 rc = cil_level_to_mls_level(pdb, high, mls_level);