• Home
  • Raw
  • Download

Lines Matching refs:mls_level

859 	mls_level_t *mls_level = NULL;  in cil_sensitivityorder_to_policydb()  local
864 mls_level = cil_malloc(sizeof(*mls_level)); in cil_sensitivityorder_to_policydb()
866 mls_level_init(mls_level); in cil_sensitivityorder_to_policydb()
873 mls_level->sens = value; in cil_sensitivityorder_to_policydb()
874 sepol_level->level = mls_level; in cil_sensitivityorder_to_policydb()
881 mls_level_destroy(mls_level); in cil_sensitivityorder_to_policydb()
883 free(mls_level); in cil_sensitivityorder_to_policydb()
892 mls_level_t *mls_level = NULL; in cil_sensalias_to_policydb() local
906 mls_level = cil_malloc(sizeof(*mls_level)); in cil_sensalias_to_policydb()
907 mls_level_init(mls_level); in cil_sensalias_to_policydb()
909 rc = mls_level_cpy(mls_level, sepol_level->level); in cil_sensalias_to_policydb()
913 sepol_alias->level = mls_level; in cil_sensalias_to_policydb()
2854 int __cil_cats_to_mls_level(policydb_t *pdb, struct cil_cats *cats, mls_level_t *mls_level) in __cil_cats_to_mls_level() argument
2869 rc = ebitmap_set_bit(&mls_level->cat, sepol_cat->s.value - 1, 1); in __cil_cats_to_mls_level()
2876 rc = ebitmap_set_bit(&mls_level->cat, sepol_cat->s.value - 1, 1); in __cil_cats_to_mls_level()
2892 mls_level_t *mls_level = NULL; in cil_sepol_level_define() local
2897 mls_level = sepol_level->level; in cil_sepol_level_define()
2899 ebitmap_init(&mls_level->cat); in cil_sepol_level_define()
2904 rc = __cil_cats_to_mls_level(pdb, cats, mls_level); in cil_sepol_level_define()
2920 int cil_level_to_mls_level(policydb_t *pdb, struct cil_level *cil_level, mls_level_t *mls_level) in cil_level_to_mls_level() argument
2930 mls_level->sens = sepol_level->level->sens; in cil_level_to_mls_level()
2932 ebitmap_init(&mls_level->cat); in cil_level_to_mls_level()
2935 rc = __cil_cats_to_mls_level(pdb, cats, mls_level); in cil_level_to_mls_level()
2952 mls_level_t *mls_level = NULL; in __cil_levelrange_to_mls_range() local
2954 mls_level = &mls_range->level[0]; in __cil_levelrange_to_mls_range()
2956 rc = cil_level_to_mls_level(pdb, low, mls_level); in __cil_levelrange_to_mls_range()
2961 mls_level = &mls_range->level[1]; in __cil_levelrange_to_mls_range()
2963 rc = cil_level_to_mls_level(pdb, high, mls_level); in __cil_levelrange_to_mls_range()