Home
last modified time | relevance | path

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

/third_party/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.c1101 cat_datum_t *catdatum; in cat_index() local
1103 catdatum = (cat_datum_t *) datum; in cat_index()
1106 if (!catdatum->isalias) { in cat_index()
1107 if (!value_isvalid(catdatum->s.value, p->p_cats.nprim)) in cat_index()
1109 if (p->p_cat_val_to_name[catdatum->s.value - 1] != NULL) in cat_index()
1111 p->p_cat_val_to_name[catdatum->s.value - 1] = (char *)key; in cat_index()
3441 cat_datum_t *catdatum; in cat_read() local
3445 catdatum = malloc(sizeof(cat_datum_t)); in cat_read()
3446 if (!catdatum) in cat_read()
3448 cat_datum_init(catdatum); in cat_read()
[all …]
Dwrite.c480 cat_datum_t *catdatum; in cat_write() local
486 catdatum = (cat_datum_t *) datum; in cat_write()
491 buf[items++] = cpu_to_le32(catdatum->s.value); in cat_write()
492 buf[items++] = cpu_to_le32(catdatum->isalias); in cat_write()