Searched refs:levdatum (Results 1 - 2 of 2) sorted by relevance
/linux-4.1.27/security/selinux/ss/ |
H A D | mls.c | 162 struct level_datum *levdatum; mls_level_isvalid() local 166 levdatum = hashtab_search(p->p_levels.table, mls_level_isvalid() 168 if (!levdatum) mls_level_isvalid() 173 * levdatum->level->cat and no bit in l->cat is larger than mls_level_isvalid() 176 return ebitmap_contains(&levdatum->level->cat, &l->cat, mls_level_isvalid() 244 struct level_datum *levdatum; mls_context_to_sid() local 282 levdatum = hashtab_search(pol->p_levels.table, scontextp); mls_context_to_sid() 283 if (!levdatum) { mls_context_to_sid() 288 context->range.level[l].sens = levdatum->level->sens; mls_context_to_sid() 466 struct level_datum *levdatum; mls_convert_context() local 476 levdatum = hashtab_search(newp->p_levels.table, mls_convert_context() 480 if (!levdatum) mls_convert_context() 482 c->range.level[l].sens = levdatum->level->sens; mls_convert_context()
|
H A D | policydb.c | 435 struct level_datum *levdatum; sens_index() local 438 levdatum = datum; sens_index() 441 if (!levdatum->isalias) { sens_index() 442 if (!levdatum->level->sens || sens_index() 443 levdatum->level->sens > p->p_levels.nprim) sens_index() 446 if (flex_array_put_ptr(fa, levdatum->level->sens - 1, key, sens_index() 719 struct level_datum *levdatum; sens_destroy() local 723 levdatum = datum; sens_destroy() 724 ebitmap_destroy(&levdatum->level->cat); sens_destroy() 725 kfree(levdatum->level); sens_destroy() 1587 struct level_datum *levdatum; sens_read() local 1593 levdatum = kzalloc(sizeof(*levdatum), GFP_ATOMIC); sens_read() 1594 if (!levdatum) sens_read() 1602 levdatum->isalias = le32_to_cpu(buf[1]); sens_read() 1609 levdatum->level = kmalloc(sizeof(struct mls_level), GFP_ATOMIC); sens_read() 1610 if (!levdatum->level) sens_read() 1613 rc = mls_read_level(levdatum->level, fp); sens_read() 1617 rc = hashtab_insert(h, key, levdatum); sens_read() 1622 sens_destroy(key, levdatum, NULL); sens_read() 2577 struct level_datum *levdatum = datum; sens_write() local 2586 buf[1] = cpu_to_le32(levdatum->isalias); sens_write() 2595 rc = mls_write_level(levdatum->level, fp); sens_write()
|
Completed in 111 milliseconds