Searched refs:catdatum (Results 1 – 2 of 2) sorted by relevance
/security/selinux/ss/ |
D | mls.c | 253 struct cat_datum *catdatum, *rngdatum; in mls_context_to_sid() local 315 catdatum = hashtab_search(pol->p_cats.table, in mls_context_to_sid() 317 if (!catdatum) { in mls_context_to_sid() 323 catdatum->value - 1, 1); in mls_context_to_sid() 337 if (catdatum->value >= rngdatum->value) { in mls_context_to_sid() 342 for (i = catdatum->value; i < rngdatum->value; i++) { in mls_context_to_sid() 475 struct cat_datum *catdatum; in mls_convert_context() local 496 catdatum = hashtab_search(newp->p_cats.table, in mls_convert_context() 498 if (!catdatum) in mls_convert_context() 500 rc = ebitmap_set_bit(&bitmap, catdatum->value - 1, 1); in mls_convert_context()
|
D | policydb.c | 458 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() 1654 struct cat_datum *catdatum; in cat_read() local 1660 catdatum = kzalloc(sizeof(*catdatum), GFP_ATOMIC); in cat_read() 1661 if (!catdatum) in cat_read() 1669 catdatum->value = le32_to_cpu(buf[1]); in cat_read() 1670 catdatum->isalias = le32_to_cpu(buf[2]); in cat_read() [all …]
|