Lines Matching refs:nprim
319 sepol_perm->s.value = sepol_common->permissions.nprim + 1;
320 sepol_common->permissions.nprim++;
375 sepol_class->permissions.nprim += sepol_common->permissions.nprim;
390 sepol_perm->s.value = sepol_class->permissions.nprim + 1;
391 sepol_class->permissions.nprim++;
630 pdb->type_attr_map = cil_malloc(pdb->p_types.nprim * sizeof(ebitmap_t));
633 for (i = 0; i < pdb->p_types.nprim; i++) {
3383 if (common->s.value < 1 || common->s.value > pdb->p_commons.nprim) {
3396 if (class->s.value < 1 || class->s.value > pdb->p_classes.nprim) {
3410 if (role->s.value < 1 || role->s.value > pdb->p_roles.nprim) {
3424 if (type->s.value < 1 || type->s.value > pdb->p_types.nprim) {
3438 if (user->s.value < 1 || user->s.value > pdb->p_users.nprim) {
3452 if (bool->s.value < 1 || bool->s.value > pdb->p_bools.nprim) {
3466 if (level->level->sens < 1 || level->level->sens > pdb->p_levels.nprim) {
3479 if (cat->s.value < 1 || cat->s.value > pdb->p_cats.nprim) {
3491 policydb->p_common_val_to_name = cil_malloc(sizeof(char *) * policydb->p_commons.nprim);
3497 policydb->p_class_val_to_name = cil_malloc(sizeof(char *) * policydb->p_classes.nprim);
3498 policydb->class_val_to_struct = cil_malloc(sizeof(class_datum_t *) * policydb->p_classes.nprim);
3504 policydb->p_role_val_to_name = cil_malloc(sizeof(char *) * policydb->p_roles.nprim);
3505 policydb->role_val_to_struct = cil_malloc(sizeof(role_datum_t *) * policydb->p_roles.nprim);
3511 policydb->p_type_val_to_name = cil_malloc(sizeof(char *) * policydb->p_types.nprim);
3512 policydb->type_val_to_struct = cil_malloc(sizeof(type_datum_t *) * policydb->p_types.nprim);
3518 policydb->p_user_val_to_name = cil_malloc(sizeof(char *) * policydb->p_users.nprim);
3519 policydb->user_val_to_struct = cil_malloc(sizeof(user_datum_t *) * policydb->p_users.nprim);
3525 policydb->p_bool_val_to_name = cil_malloc(sizeof(char *) * policydb->p_bools.nprim);
3526 policydb->bool_val_to_struct = cil_malloc(sizeof(cond_bool_datum_t *) * policydb->p_bools.nprim);
3532 policydb->p_sens_val_to_name = cil_malloc(sizeof(char *) * policydb->p_levels.nprim);
3538 policydb->p_cat_val_to_name = cil_malloc(sizeof(char *) * policydb->p_cats.nprim);