Home
last modified time | relevance | path

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

/linux-6.1.9/security/selinux/ss/
Dmls.c242 struct cat_datum *catdatum, *rngdatum; in mls_context_to_sid() local
314 catdatum = symtab_search(&pol->p_cats, cur_cat); in mls_context_to_sid()
315 if (!catdatum) in mls_context_to_sid()
319 catdatum->value - 1, 1); in mls_context_to_sid()
331 if (catdatum->value >= rngdatum->value) in mls_context_to_sid()
334 for (i = catdatum->value; i < rngdatum->value; i++) { in mls_context_to_sid()
452 struct cat_datum *catdatum; in mls_convert_context() local
473 catdatum = symtab_search(&newp->p_cats, in mls_convert_context()
475 if (!catdatum) in mls_convert_context()
478 catdatum->value - 1, 1); in mls_convert_context()
Dpolicydb.c655 struct cat_datum *catdatum; in cat_index() local
657 catdatum = datum; in cat_index()
660 if (!catdatum->isalias) { in cat_index()
661 if (!catdatum->value || catdatum->value > p->p_cats.nprim) in cat_index()
664 p->sym_val_to_name[SYM_CATS][catdatum->value - 1] = key; in cat_index()
1608 struct cat_datum *catdatum; in cat_read() local
1613 catdatum = kzalloc(sizeof(*catdatum), GFP_ATOMIC); in cat_read()
1614 if (!catdatum) in cat_read()
1622 catdatum->value = le32_to_cpu(buf[1]); in cat_read()
1623 catdatum->isalias = le32_to_cpu(buf[2]); in cat_read()
[all …]