Lines Matching refs:sepol_level
136 …get_sepol_level_datum(policydb_t *pdb, struct cil_symtab_datum *datum, level_datum_t **sepol_level) in __cil_get_sepol_level_datum() argument
138 *sepol_level = hashtab_search(pdb->p_levels.table, datum->fqn); in __cil_get_sepol_level_datum()
139 if (*sepol_level == NULL) { in __cil_get_sepol_level_datum()
857 level_datum_t *sepol_level = NULL; in cil_sensitivityorder_to_policydb() local
862 sepol_level = cil_malloc(sizeof(*sepol_level)); in cil_sensitivityorder_to_policydb()
864 level_datum_init(sepol_level); in cil_sensitivityorder_to_policydb()
868 rc = symtab_insert(pdb, SYM_LEVELS, key, sepol_level, SCOPE_DECL, 0, &value); in cil_sensitivityorder_to_policydb()
873 sepol_level->level = mls_level; in cil_sensitivityorder_to_policydb()
879 level_datum_destroy(sepol_level); in cil_sensitivityorder_to_policydb()
881 free(sepol_level); in cil_sensitivityorder_to_policydb()
892 level_datum_t *sepol_level = NULL; in cil_sensalias_to_policydb() local
896 rc = __cil_get_sepol_level_datum(pdb, DATUM(cil_alias->actual), &sepol_level); in cil_sensalias_to_policydb()
908 rc = mls_level_cpy(mls_level, sepol_level->level); in cil_sensalias_to_policydb()
920 free(sepol_level); in cil_sensalias_to_policydb()
2750 level_datum_t *sepol_level = NULL; in cil_sepol_level_define() local
2753 rc = __cil_get_sepol_level_datum(pdb, DATUM(cil_sens), &sepol_level); in cil_sepol_level_define()
2756 mls_level = sepol_level->level; in cil_sepol_level_define()
2771 sepol_level->defined = 1; in cil_sepol_level_define()
2784 level_datum_t *sepol_level = NULL; in cil_level_to_mls_level() local
2786 rc = __cil_get_sepol_level_datum(pdb, DATUM(cil_sens), &sepol_level); in cil_level_to_mls_level()
2789 mls_level->sens = sepol_level->level->sens; in cil_level_to_mls_level()