Home
last modified time | relevance | path

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

/security/selinux/ss/
Dmls.c245 struct cat_datum *catdatum, *rngdatum; in mls_context_to_sid() local
307 catdatum = hashtab_search(pol->p_cats.table, in mls_context_to_sid()
309 if (!catdatum) { in mls_context_to_sid()
315 catdatum->value - 1, 1); in mls_context_to_sid()
329 if (catdatum->value >= rngdatum->value) { in mls_context_to_sid()
334 for (i = catdatum->value; i < rngdatum->value; i++) { in mls_context_to_sid()
467 struct cat_datum *catdatum; in mls_convert_context() local
488 catdatum = hashtab_search(newp->p_cats.table, in mls_convert_context()
490 if (!catdatum) in mls_convert_context()
492 rc = ebitmap_set_bit(&bitmap, catdatum->value - 1, 1); in mls_convert_context()
Dpolicydb.c458 struct cat_datum *catdatum; in cat_index() local
461 catdatum = datum; in cat_index()
464 if (!catdatum->isalias) { in cat_index()
465 if (!catdatum->value || catdatum->value > p->p_cats.nprim) in cat_index()
468 if (flex_array_put_ptr(fa, catdatum->value - 1, key, in cat_index()
1630 struct cat_datum *catdatum; in cat_read() local
1636 catdatum = kzalloc(sizeof(*catdatum), GFP_ATOMIC); in cat_read()
1637 if (!catdatum) in cat_read()
1645 catdatum->value = le32_to_cpu(buf[1]); in cat_read()
1646 catdatum->isalias = le32_to_cpu(buf[2]); in cat_read()
[all …]