Lines Matching defs:mls_level
868 mls_level_t *mls_level = NULL;
873 mls_level = cil_malloc(sizeof(*mls_level));
875 mls_level_init(mls_level);
882 mls_level->sens = value;
883 sepol_level->level = mls_level;
890 mls_level_destroy(mls_level);
892 free(mls_level);
901 mls_level_t *mls_level = NULL;
915 mls_level = cil_malloc(sizeof(*mls_level));
916 mls_level_init(mls_level);
918 rc = mls_level_cpy(mls_level, sepol_level->level);
922 sepol_alias->level = mls_level;
2885 int __cil_cats_to_mls_level(policydb_t *pdb, struct cil_cats *cats, mls_level_t *mls_level)
2900 rc = ebitmap_set_bit(&mls_level->cat, sepol_cat->s.value - 1, 1);
2907 rc = ebitmap_set_bit(&mls_level->cat, sepol_cat->s.value - 1, 1);
2923 mls_level_t *mls_level = NULL;
2928 mls_level = sepol_level->level;
2930 ebitmap_init(&mls_level->cat);
2935 rc = __cil_cats_to_mls_level(pdb, cats, mls_level);
2951 int cil_level_to_mls_level(policydb_t *pdb, struct cil_level *cil_level, mls_level_t *mls_level)
2961 mls_level->sens = sepol_level->level->sens;
2963 ebitmap_init(&mls_level->cat);
2966 rc = __cil_cats_to_mls_level(pdb, cats, mls_level);
2983 mls_level_t *mls_level = NULL;
2985 mls_level = &mls_range->level[0];
2987 rc = cil_level_to_mls_level(pdb, low, mls_level);
2992 mls_level = &mls_range->level[1];
2994 rc = cil_level_to_mls_level(pdb, high, mls_level);