Home
last modified time | relevance | path

Searched refs:catdatum (Results 1 – 3 of 3) sorted by relevance

/external/selinux/libsepol/src/
Dmls.c336 cat_datum_t *catdatum, *rngdatum; in mls_context_to_sid() local
381 catdatum = in mls_context_to_sid()
386 if (!catdatum) in mls_context_to_sid()
391 catdatum->s.value - 1, 1)) in mls_context_to_sid()
406 if (catdatum->s.value >= in mls_context_to_sid()
410 for (i = catdatum->s.value; in mls_context_to_sid()
556 cat_datum_t *catdatum; in mls_convert_context() local
583 catdatum = in mls_convert_context()
589 if (!catdatum) in mls_convert_context()
592 catdatum->s.value - 1, 1); in mls_convert_context()
Dpolicydb.c1098 cat_datum_t *catdatum; in cat_index() local
1100 catdatum = (cat_datum_t *) datum; in cat_index()
1103 if (!catdatum->isalias) { in cat_index()
1104 if (!catdatum->s.value || catdatum->s.value > p->p_cats.nprim) in cat_index()
1106 if (p->p_cat_val_to_name[catdatum->s.value - 1] != NULL) in cat_index()
1108 p->p_cat_val_to_name[catdatum->s.value - 1] = (char *)key; in cat_index()
3271 cat_datum_t *catdatum; in cat_read() local
3275 catdatum = malloc(sizeof(cat_datum_t)); in cat_read()
3276 if (!catdatum) in cat_read()
3278 cat_datum_init(catdatum); in cat_read()
[all …]
Dwrite.c481 cat_datum_t *catdatum; in cat_write() local
487 catdatum = (cat_datum_t *) datum; in cat_write()
492 buf[items++] = cpu_to_le32(catdatum->s.value); in cat_write()
493 buf[items++] = cpu_to_le32(catdatum->isalias); in cat_write()