Lines Matching refs:nprim

994 	if (!comdatum->s.value || comdatum->s.value > p->p_commons.nprim)  in common_index()
1010 if (!cladatum->s.value || cladatum->s.value > p->p_classes.nprim) in class_index()
1027 if (!role->s.value || role->s.value > p->p_roles.nprim) in role_index()
1046 if (!typdatum->s.value || typdatum->s.value > p->p_types.nprim) in type_index()
1065 if (!usrdatum->s.value || usrdatum->s.value > p->p_users.nprim) in user_index()
1085 levdatum->level->sens > p->p_levels.nprim) in sens_index()
1104 if (!catdatum->s.value || catdatum->s.value > p->p_cats.nprim) in cat_index()
1128 calloc(p->p_commons.nprim, sizeof(char *)); in policydb_index_classes()
1137 calloc(p->p_classes.nprim, sizeof(class_datum_t *)); in policydb_index_classes()
1143 calloc(p->p_classes.nprim, sizeof(char *)); in policydb_index_classes()
1159 calloc(p->p_bools.nprim, sizeof(char *)); in policydb_index_bools()
1218 p->p_users.nprim, p->p_roles.nprim, p->p_types.nprim, in policydb_index_others()
1219 p->p_bools.nprim); in policydb_index_others()
1223 p->p_levels.nprim, p->p_cats.nprim); in policydb_index_others()
1226 p->p_classes.nprim, p->te_avtab.nel, p->te_cond_avtab.nel); in policydb_index_others()
1236 calloc(p->p_roles.nprim, sizeof(role_datum_t *)); in policydb_index_others()
1242 calloc(p->p_users.nprim, sizeof(user_datum_t *)); in policydb_index_others()
1248 calloc(p->p_types.nprim, sizeof(type_datum_t *)); in policydb_index_others()
1257 if (p->symtab[i].nprim) { in policydb_index_others()
1259 calloc(p->symtab[i].nprim, sizeof(char *)); in policydb_index_others()
1562 for (i = 0; i < p->p_types.nprim; i++) { in policydb_destroy()
1569 for (i = 0; i < p->p_types.nprim; i++) { in policydb_destroy()
1665 *value = ++pol->symtab[sym].nprim; in symtab_insert()
2122 comdatum->permissions.nprim = le32_to_cpu(buf[2]); in common_read()
2270 cladatum->permissions.nprim = le32_to_cpu(buf[3]); in class_read()
3771 uint32_t buf[2], nprim, nel; in avrule_decl_read() local
3804 nprim = le32_to_cpu(buf[0]); in avrule_decl_read()
3811 decl->symtab[i].nprim = nprim; in avrule_decl_read()
3971 size_t len, nprim, nel; in policydb_read() local
4175 nprim = le32_to_cpu(buf[0]); in policydb_read()
4177 if (nel && !nprim) { in policydb_read()
4186 p->symtab[i].nprim = nprim; in policydb_read()
4254 p->type_attr_map = malloc(p->p_types.nprim * sizeof(ebitmap_t)); in policydb_read()
4255 p->attr_type_map = malloc(p->p_types.nprim * sizeof(ebitmap_t)); in policydb_read()
4258 for (i = 0; i < p->p_types.nprim; i++) { in policydb_read()
4262 for (i = 0; i < p->p_types.nprim; i++) { in policydb_read()
4271 if (j >= p->p_types.nprim) in policydb_read()
4304 calloc(p->p_users.nprim, sizeof(user_datum_t *)); in policydb_reindex_users()
4309 calloc(p->symtab[i].nprim, sizeof(char *)); in policydb_reindex_users()