Home
last modified time | relevance | path

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

/linux-3.4.99/security/selinux/ss/
Dmls.c253 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()
Dpolicydb.c438 struct cat_datum *catdatum; in cat_index() local
441 catdatum = datum; in cat_index()
444 if (!catdatum->isalias) { in cat_index()
445 if (!catdatum->value || catdatum->value > p->p_cats.nprim) in cat_index()
448 if (flex_array_put_ptr(fa, catdatum->value - 1, key, in cat_index()
1568 struct cat_datum *catdatum; in cat_read() local
1574 catdatum = kzalloc(sizeof(*catdatum), GFP_ATOMIC); in cat_read()
1575 if (!catdatum) in cat_read()
1583 catdatum->value = le32_to_cpu(buf[1]); in cat_read()
1584 catdatum->isalias = le32_to_cpu(buf[2]); in cat_read()
[all …]