Lines Matching refs:nprim
972 if (!comdatum->s.value || comdatum->s.value > p->p_commons.nprim) in common_index()
988 if (!cladatum->s.value || cladatum->s.value > p->p_classes.nprim) in class_index()
1005 if (!role->s.value || role->s.value > p->p_roles.nprim) in role_index()
1024 if (!typdatum->s.value || typdatum->s.value > p->p_types.nprim) in type_index()
1043 if (!usrdatum->s.value || usrdatum->s.value > p->p_users.nprim) in user_index()
1063 levdatum->level->sens > p->p_levels.nprim) in sens_index()
1082 if (!catdatum->s.value || catdatum->s.value > p->p_cats.nprim) in cat_index()
1106 calloc(p->p_commons.nprim, sizeof(char *)); in policydb_index_classes()
1115 calloc(p->p_classes.nprim, sizeof(class_datum_t *)); in policydb_index_classes()
1121 calloc(p->p_classes.nprim, sizeof(char *)); in policydb_index_classes()
1137 calloc(p->p_bools.nprim, sizeof(char *)); in policydb_index_bools()
1196 p->p_users.nprim, p->p_roles.nprim, p->p_types.nprim, in policydb_index_others()
1197 p->p_bools.nprim); in policydb_index_others()
1201 p->p_levels.nprim, p->p_cats.nprim); in policydb_index_others()
1204 p->p_classes.nprim, p->te_avtab.nel, p->te_cond_avtab.nel); in policydb_index_others()
1214 calloc(p->p_roles.nprim, sizeof(role_datum_t *)); in policydb_index_others()
1220 calloc(p->p_users.nprim, sizeof(user_datum_t *)); in policydb_index_others()
1226 calloc(p->p_types.nprim, sizeof(type_datum_t *)); in policydb_index_others()
1235 if (p->symtab[i].nprim) { in policydb_index_others()
1237 calloc(p->symtab[i].nprim, sizeof(char *)); in policydb_index_others()
1540 for (i = 0; i < p->p_types.nprim; i++) { in policydb_destroy()
1547 for (i = 0; i < p->p_types.nprim; i++) { in policydb_destroy()
1647 *value = ++pol->symtab[sym].nprim; in symtab_insert()
2104 comdatum->permissions.nprim = le32_to_cpu(buf[2]); in common_read()
2252 cladatum->permissions.nprim = le32_to_cpu(buf[3]); in class_read()
3753 uint32_t buf[2], nprim, nel; in avrule_decl_read() local
3786 nprim = le32_to_cpu(buf[0]); in avrule_decl_read()
3793 decl->symtab[i].nprim = nprim; in avrule_decl_read()
3953 size_t len, nprim, nel; in policydb_read() local
4157 nprim = le32_to_cpu(buf[0]); in policydb_read()
4159 if (nel && !nprim) { in policydb_read()
4168 p->symtab[i].nprim = nprim; in policydb_read()
4236 p->type_attr_map = malloc(p->p_types.nprim * sizeof(ebitmap_t)); in policydb_read()
4237 p->attr_type_map = malloc(p->p_types.nprim * sizeof(ebitmap_t)); in policydb_read()
4240 for (i = 0; i < p->p_types.nprim; i++) { in policydb_read()
4244 for (i = 0; i < p->p_types.nprim; i++) { in policydb_read()
4254 if (j >= p->p_types.nprim) in policydb_read()
4287 calloc(p->p_users.nprim, sizeof(user_datum_t *)); in policydb_reindex_users()
4292 calloc(p->symtab[i].nprim, sizeof(char *)); in policydb_reindex_users()