Home
last modified time | relevance | path

Searched refs:nprim (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/security/selinux/ss/
H A Dpolicydb.c389 role->value = ++p->p_roles.nprim; in roles_init()
587 || role->value > p->p_roles.nprim in role_index()
721 p->p_users.nprim, p->p_roles.nprim, p->p_types.nprim, in policydb_index()
722 p->p_bools.nprim, p->p_levels.nprim, p->p_cats.nprim); in policydb_index()
725 p->p_users.nprim, p->p_roles.nprim, p->p_types.nprim, in policydb_index()
726 p->p_bools.nprim); in policydb_index()
910 if (!role || role > p->p_roles.nprim) in policydb_role_isvalid()
917 if (!type || type > p->p_types.nprim) in policydb_type_isvalid()
2412 u32 i, j, len, nprim, nel, perm; in policydb_read() local
2531 nprim = le32_to_cpu(buf[0]); in policydb_read()
[all …]
H A Dsymtab.h17 u32 nprim; /* number of primary names in table */ member
H A Dconditional.c169 p->bool_val_to_struct = kmalloc_array(p->p_bools.nprim, in cond_init_bool_indexes()
192 if (!booldatum->value || booldatum->value > p->p_bools.nprim) in cond_index_bool()
369 if (expr->boolean > p->p_bools.nprim) { in expr_node_isvalid()
717 cond_bool_array = kmalloc_array(orig->p_bools.nprim, in duplicate_policydb_bools()
733 newdb->p_bools.nprim = orig->p_bools.nprim; in duplicate_policydb_bools()
H A Dmls.c165 if (!l->sens || l->sens > p->p_levels.nprim) in mls_level_isvalid()
178 p->p_cats.nprim); in mls_level_isvalid()
208 if (!c->user || c->user > p->p_users.nprim) in mls_context_isvalid()
515 if (tclass && tclass <= p->p_classes.nprim) { in mls_compute_sid()
H A Dsymtab.c42 s->nprim = 0; in symtab_init()
H A Dservices.c635 if (unlikely(!tclass || tclass > policydb->p_classes.nprim)) { in context_struct_compute_av()
776 if (!tclass || tclass > policydb->p_classes.nprim) { in security_compute_validatetrans()
1053 if (unlikely(!tclass || tclass > policydb->p_classes.nprim)) { in security_compute_xperms_decision()
1764 if (tclass && tclass <= policydb->p_classes.nprim) in security_compute_sid()
2975 *len = policydb->p_bools.nprim; in security_get_bools()
3029 if (WARN_ON(len != oldpolicy->policydb.p_bools.nprim)) in security_set_bools()
3102 len = policydb->p_bools.nprim; in security_get_bool_value()
3351 *nclasses = policydb->p_classes.nprim; in security_get_classes()
3402 *nperms = match->permissions.nprim; in security_get_permissions()