• Home
  • Raw
  • Download

Lines Matching refs:nprim

278 		sepol_perm->s.value = sepol_common->permissions.nprim + 1;  in cil_common_to_policydb()
279 sepol_common->permissions.nprim++; in cil_common_to_policydb()
337 sepol_class->permissions.nprim += sepol_common->permissions.nprim; in cil_classorder_to_policydb()
357 sepol_perm->s.value = sepol_class->permissions.nprim + 1; in cil_classorder_to_policydb()
358 sepol_class->permissions.nprim++; in cil_classorder_to_policydb()
601 pdb->type_attr_map = cil_malloc(pdb->p_types.nprim * sizeof(ebitmap_t)); in __cil_typeattr_bitmap_init()
602 pdb->attr_type_map = cil_malloc(pdb->p_types.nprim * sizeof(ebitmap_t)); in __cil_typeattr_bitmap_init()
605 for (i = 0; i < pdb->p_types.nprim; i++) { in __cil_typeattr_bitmap_init()
3887 if (common->s.value < 1 || common->s.value > pdb->p_commons.nprim) { in __cil_common_val_array_insert()
3900 if (class->s.value < 1 || class->s.value > pdb->p_classes.nprim) { in __cil_class_val_array_insert()
3914 if (role->s.value < 1 || role->s.value > pdb->p_roles.nprim) { in __cil_role_val_array_insert()
3928 if (type->s.value < 1 || type->s.value > pdb->p_types.nprim) { in __cil_type_val_array_insert()
3942 if (user->s.value < 1 || user->s.value > pdb->p_users.nprim) { in __cil_user_val_array_insert()
3956 if (bool->s.value < 1 || bool->s.value > pdb->p_bools.nprim) { in __cil_bool_val_array_insert()
3970 if (level->level->sens < 1 || level->level->sens > pdb->p_levels.nprim) { in __cil_level_val_array_insert()
3983 if (cat->s.value < 1 || cat->s.value > pdb->p_cats.nprim) { in __cil_cat_val_array_insert()
3995 policydb->p_common_val_to_name = cil_malloc(sizeof(char *) * policydb->p_commons.nprim); in __cil_policydb_val_arrays_create()
4001 policydb->p_class_val_to_name = cil_malloc(sizeof(char *) * policydb->p_classes.nprim); in __cil_policydb_val_arrays_create()
4002 policydb->class_val_to_struct = cil_malloc(sizeof(class_datum_t *) * policydb->p_classes.nprim); in __cil_policydb_val_arrays_create()
4008 policydb->p_role_val_to_name = cil_malloc(sizeof(char *) * policydb->p_roles.nprim); in __cil_policydb_val_arrays_create()
4009 policydb->role_val_to_struct = cil_malloc(sizeof(role_datum_t *) * policydb->p_roles.nprim); in __cil_policydb_val_arrays_create()
4015 policydb->p_type_val_to_name = cil_malloc(sizeof(char *) * policydb->p_types.nprim); in __cil_policydb_val_arrays_create()
4016 policydb->type_val_to_struct = cil_malloc(sizeof(type_datum_t *) * policydb->p_types.nprim); in __cil_policydb_val_arrays_create()
4022 policydb->p_user_val_to_name = cil_malloc(sizeof(char *) * policydb->p_users.nprim); in __cil_policydb_val_arrays_create()
4023 policydb->user_val_to_struct = cil_malloc(sizeof(user_datum_t *) * policydb->p_users.nprim); in __cil_policydb_val_arrays_create()
4029 policydb->p_bool_val_to_name = cil_malloc(sizeof(char *) * policydb->p_bools.nprim); in __cil_policydb_val_arrays_create()
4030 policydb->bool_val_to_struct = cil_malloc(sizeof(cond_bool_datum_t *) * policydb->p_bools.nprim); in __cil_policydb_val_arrays_create()
4036 policydb->p_sens_val_to_name = cil_malloc(sizeof(char *) * policydb->p_levels.nprim); in __cil_policydb_val_arrays_create()
4042 policydb->p_cat_val_to_name = cil_malloc(sizeof(char *) * policydb->p_cats.nprim); in __cil_policydb_val_arrays_create()
4712 for (i = 0; i < sepol_class->permissions.nprim; i++) { in cil_classperms_from_sepol()