Searched refs:catdatum (Results 1 – 2 of 2) sorted by relevance
235 struct cat_datum *catdatum, *rngdatum; in mls_context_to_sid() local308 catdatum = symtab_search(&pol->p_cats, cur_cat); in mls_context_to_sid()309 if (!catdatum) in mls_context_to_sid()313 catdatum->value - 1, 1); in mls_context_to_sid()325 if (catdatum->value >= rngdatum->value) in mls_context_to_sid()328 for (i = catdatum->value; i < rngdatum->value; i++) { in mls_context_to_sid()443 struct cat_datum *catdatum; in mls_convert_context() local466 catdatum = symtab_search(&newp->p_cats, in mls_convert_context()468 if (!catdatum) in mls_convert_context()471 catdatum->value - 1, 1); in mls_convert_context()
646 struct cat_datum *catdatum; in cat_index() local648 catdatum = datum; in cat_index()651 if (!catdatum->isalias) { in cat_index()652 if (!catdatum->value || catdatum->value > p->p_cats.nprim) in cat_index()655 p->sym_val_to_name[SYM_CATS][catdatum->value - 1] = key; in cat_index()1637 struct cat_datum *catdatum; in cat_read() local1642 catdatum = kzalloc(sizeof(*catdatum), GFP_KERNEL); in cat_read()1643 if (!catdatum) in cat_read()1651 catdatum->value = le32_to_cpu(buf[1]); in cat_read()1652 catdatum->isalias = le32_to_cpu(buf[2]); in cat_read()[all …]