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

/linux-4.1.27/security/selinux/ss/
H A Dmls.c245 struct cat_datum *catdatum, *rngdatum; mls_context_to_sid() local
307 catdatum = hashtab_search(pol->p_cats.table, mls_context_to_sid()
309 if (!catdatum) { mls_context_to_sid()
315 catdatum->value - 1, 1); mls_context_to_sid()
329 if (catdatum->value >= rngdatum->value) { mls_context_to_sid()
334 for (i = catdatum->value; i < rngdatum->value; i++) { mls_context_to_sid()
467 struct cat_datum *catdatum; mls_convert_context() local
488 catdatum = hashtab_search(newp->p_cats.table, mls_convert_context()
490 if (!catdatum) mls_convert_context()
492 rc = ebitmap_set_bit(&bitmap, catdatum->value - 1, 1); mls_convert_context()
H A Dpolicydb.c457 struct cat_datum *catdatum; cat_index() local
460 catdatum = datum; cat_index()
463 if (!catdatum->isalias) { cat_index()
464 if (!catdatum->value || catdatum->value > p->p_cats.nprim) cat_index()
467 if (flex_array_put_ptr(fa, catdatum->value - 1, key, cat_index()
1629 struct cat_datum *catdatum; cat_read() local
1635 catdatum = kzalloc(sizeof(*catdatum), GFP_ATOMIC); cat_read()
1636 if (!catdatum) cat_read()
1644 catdatum->value = le32_to_cpu(buf[1]); cat_read()
1645 catdatum->isalias = le32_to_cpu(buf[2]); cat_read()
1651 rc = hashtab_insert(h, key, catdatum); cat_read()
1656 cat_destroy(key, catdatum, NULL); cat_read()
2605 struct cat_datum *catdatum = datum; cat_write() local
2614 buf[1] = cpu_to_le32(catdatum->value); cat_write()
2615 buf[2] = cpu_to_le32(catdatum->isalias); cat_write()

Completed in 98 milliseconds