Lines Matching refs:cil_malloc

229 	ocontext_t *new = cil_malloc(sizeof(ocontext_t));  in cil_add_ocontext()
248 common_datum_t *sepol_common = cil_malloc(sizeof(*sepol_common)); in cil_common_to_policydb()
266 perm_datum_t *sepol_perm = cil_malloc(sizeof(*sepol_perm)); in cil_common_to_policydb()
301 class_datum_t *sepol_class = cil_malloc(sizeof(*sepol_class)); in cil_classorder_to_policydb()
344 perm_datum_t *sepol_perm = cil_malloc(sizeof(*sepol_perm)); in cil_classorder_to_policydb()
371 role_datum_t *sepol_role = cil_malloc(sizeof(*sepol_role)); in cil_role_to_policydb()
462 type_datum_t *sepol_type = cil_malloc(sizeof(*sepol_type)); in cil_type_to_policydb()
514 type_datum_t *sepol_alias = cil_malloc(sizeof(*sepol_alias)); in cil_typealias_to_policydb()
571 sepol_attr = cil_malloc(sizeof(*sepol_attr)); in cil_typeattribute_to_policydb()
598 pdb->type_attr_map = cil_malloc(pdb->p_types.nprim * sizeof(ebitmap_t)); in __cil_typeattr_bitmap_init()
599 pdb->attr_type_map = cil_malloc(pdb->p_types.nprim * sizeof(ebitmap_t)); in __cil_typeattr_bitmap_init()
686 user_datum_t *sepol_user = cil_malloc(sizeof(*sepol_user)); in cil_user_to_policydb()
771 cond_bool_datum_t *sepol_bool = cil_malloc(sizeof(*sepol_bool)); in cil_bool_to_policydb()
801 sepol_cat = cil_malloc(sizeof(*sepol_cat)); in cil_catorder_to_policydb()
826 cat_datum_t *sepol_alias = cil_malloc(sizeof(*sepol_cat)); in cil_catalias_to_policydb()
862 sepol_level = cil_malloc(sizeof(*sepol_level)); in cil_sensitivityorder_to_policydb()
863 mls_level = cil_malloc(sizeof(*mls_level)); in cil_sensitivityorder_to_policydb()
893 level_datum_t *sepol_alias = cil_malloc(sizeof(*sepol_alias)); in cil_sensalias_to_policydb()
905 mls_level = cil_malloc(sizeof(*mls_level)); in cil_sensalias_to_policydb()
943 cond_list = cil_malloc(sizeof(cond_av_list_t)); in __cil_cond_insert_rule()
1170 new = cil_malloc(sizeof(*new)); in __cil_typetransition_to_avtab()
1632 avtab_key = cil_malloc(sizeof(*avtab_key)); in __cil_avrulex_ioctl_to_hashtable()
1640 hashtab_xperms = cil_malloc(sizeof(*hashtab_xperms)); in __cil_avrulex_ioctl_to_hashtable()
1910 *head = cil_malloc(sizeof(cond_expr_t)); in __cil_cond_item_to_sepol_expr()
1948 op = cil_malloc(sizeof(*op)); in __cil_cond_expr_to_sepol_expr_helper()
2014 op = cil_malloc(sizeof(*op)); in __cil_cond_expr_to_sepol_expr_helper()
2189 new = cil_malloc(sizeof(*new)); in cil_roletrans_to_policydb()
2262 sepol_roleallow = cil_malloc(sizeof(*sepol_roleallow)); in cil_roleallow_to_policydb()
2491 op = cil_malloc(sizeof(constraint_expr_t)); in __cil_constrain_expr_to_sepol_expr_helper()
2595 sepol_constrain = cil_malloc(sizeof(*sepol_constrain)); in cil_constrain_to_policydb_helper()
2692 sepol_validatetrans = cil_malloc(sizeof(*sepol_validatetrans)); in cil_validatetrans_to_policydb()
2971 new = cil_malloc(sizeof(*new)); in cil_rangetransition_to_policydb()
3160 ocontext_t *new_ocon = cil_malloc(sizeof(ocontext_t)); in cil_genfscon_to_policydb()
3166 genfs_t *new_genfs = cil_malloc(sizeof(genfs_t)); in cil_genfscon_to_policydb()
3792 policydb->p_common_val_to_name = cil_malloc(sizeof(char *) * policydb->p_commons.nprim); in __cil_policydb_val_arrays_create()
3798 policydb->p_class_val_to_name = cil_malloc(sizeof(char *) * policydb->p_classes.nprim); in __cil_policydb_val_arrays_create()
3799 policydb->class_val_to_struct = cil_malloc(sizeof(class_datum_t *) * policydb->p_classes.nprim); in __cil_policydb_val_arrays_create()
3805 policydb->p_role_val_to_name = cil_malloc(sizeof(char *) * policydb->p_roles.nprim); in __cil_policydb_val_arrays_create()
3806 policydb->role_val_to_struct = cil_malloc(sizeof(role_datum_t *) * policydb->p_roles.nprim); in __cil_policydb_val_arrays_create()
3812 policydb->p_type_val_to_name = cil_malloc(sizeof(char *) * policydb->p_types.nprim); in __cil_policydb_val_arrays_create()
3813 policydb->type_val_to_struct = cil_malloc(sizeof(type_datum_t *) * policydb->p_types.nprim); in __cil_policydb_val_arrays_create()
3819 policydb->p_user_val_to_name = cil_malloc(sizeof(char *) * policydb->p_users.nprim); in __cil_policydb_val_arrays_create()
3820 policydb->user_val_to_struct = cil_malloc(sizeof(user_datum_t *) * policydb->p_users.nprim); in __cil_policydb_val_arrays_create()
3826 policydb->p_bool_val_to_name = cil_malloc(sizeof(char *) * policydb->p_bools.nprim); in __cil_policydb_val_arrays_create()
3827 policydb->bool_val_to_struct = cil_malloc(sizeof(cond_bool_datum_t *) * policydb->p_bools.nprim); in __cil_policydb_val_arrays_create()
3833 policydb->p_sens_val_to_name = cil_malloc(sizeof(char *) * policydb->p_levels.nprim); in __cil_policydb_val_arrays_create()
3839 policydb->p_cat_val_to_name = cil_malloc(sizeof(char *) * policydb->p_cats.nprim); in __cil_policydb_val_arrays_create()
4116 cpn = cil_malloc(sizeof(class_perm_node_t)); in __cil_rule_to_sepol_class_perms()
4178 cpn = cil_malloc(sizeof(*cpn)); in __cil_permx_to_sepol_class_perms()
4231 avrule = cil_malloc(sizeof(avrule_t)); in __cil_init_sepol_avrule()