Home
last modified time | relevance | path

Searched refs:levdatum (Results 1 – 6 of 6) sorted by relevance

/third_party/selinux/libsepol/src/
Dmls.c261 level_datum_t *levdatum; in mls_context_isvalid() local
288 levdatum = (level_datum_t *) hashtab_search(p->p_levels.table, key); in mls_context_isvalid()
289 if (!levdatum) in mls_context_isvalid()
295 if (!ebitmap_get_bit(&levdatum->level->cat, i)) in mls_context_isvalid()
335 level_datum_t *levdatum; in mls_context_to_sid() local
356 levdatum = in mls_context_to_sid()
360 if (!levdatum) in mls_context_to_sid()
363 context->range.level[l].sens = levdatum->level->sens; in mls_context_to_sid()
555 level_datum_t *levdatum; in mls_convert_context() local
565 levdatum = in mls_convert_context()
[all …]
Dpolicydb.c1094 level_datum_t *levdatum; in sens_index() local
1096 levdatum = (level_datum_t *) datum; in sens_index()
1099 if (!levdatum->isalias) { in sens_index()
1100 if (!value_isvalid(levdatum->level->sens, p->p_levels.nprim)) in sens_index()
1102 if (p->p_sens_val_to_name[levdatum->level->sens - 1] != NULL) in sens_index()
1104 p->p_sens_val_to_name[levdatum->level->sens - 1] = (char *)key; in sens_index()
1388 level_datum_t *levdatum; in sens_destroy() local
1392 levdatum = (level_datum_t *) datum; in sens_destroy()
1393 mls_level_destroy(levdatum->level); in sens_destroy()
1394 free(levdatum->level); in sens_destroy()
[all …]
Dwrite.c452 level_datum_t *levdatum; in sens_write() local
458 levdatum = (level_datum_t *) datum; in sens_write()
463 buf[items++] = cpu_to_le32(levdatum->isalias); in sens_write()
472 if (mls_write_level(levdatum->level, fp)) in sens_write()
Dexpand.c920 level_datum_t *levdatum; in mls_semantic_level_expand() local
937 levdatum = (level_datum_t *) hashtab_search(p->p_levels.table, in mls_semantic_level_expand()
939 if (!levdatum) { in mls_semantic_level_expand()
953 if (!ebitmap_get_bit(&levdatum->level->cat, i)) { in mls_semantic_level_expand()
/third_party/selinux/checkpolicy/
Dpolicy_define.c1005 level_datum_t *levdatum = (level_datum_t *) datum; in clone_level() local
1008 if (levdatum->level == level) { in clone_level()
1009 levdatum->defined = 1; in clone_level()
1010 if (!levdatum->isalias) in clone_level()
1019 levdatum->level = newlevel; in clone_level()
1027 level_datum_t *levdatum; in define_level() local
1045 levdatum = (level_datum_t *) hashtab_search(policydbp->p_levels.table, in define_level()
1047 if (!levdatum) { in define_level()
1052 if (ebitmap_length(&levdatum->level->cat)) { in define_level()
1060 levdatum->defined = 1; in define_level()
[all …]
Dcheckpolicy.c371 level_datum_t *levdatum = (level_datum_t *) datum; in check_level() local
373 if (!levdatum->isalias && !levdatum->defined) { in check_level()