Searched refs:cil_malloc (Results 1 – 18 of 18) sorted by relevance
243 *db = cil_malloc(sizeof(**db)); in cil_db_init()334 struct cil_root *r = cil_malloc(sizeof(*r)); in cil_root_init()356 buffer = cil_malloc(size + 2); in cil_add_file()1214 str_tmp = cil_malloc(str_len * sizeof(char)); in cil_userprefixes_to_string()1457 str_tmp = cil_malloc(*size+1); in cil_selinuxusers_to_string()1540 str_tmp = cil_malloc(*size+1); in cil_filecons_to_string()1791 *sort = cil_malloc(sizeof(**sort)); in cil_sort_init()1815 *netifcon = cil_malloc(sizeof(**netifcon)); in cil_netifcon_init()1827 *context = cil_malloc(sizeof(**context)); in cil_context_init()1842 *level = cil_malloc(sizeof(**level)); in cil_level_init()[all …]
121 struct fc_data *a_data = cil_malloc(sizeof(*a_data)); in cil_post_filecon_compare()122 struct fc_data *b_data = cil_malloc(sizeof(*b_data)); in cil_post_filecon_compare()123 char *a_path = cil_malloc(strlen(a_filecon->path_str) + 1); in cil_post_filecon_compare()125 char *b_path = cil_malloc(strlen(b_filecon->path_str) + 1); in cil_post_filecon_compare()450 db->val_to_type = cil_malloc(sizeof(*db->val_to_type) * db->num_types); in __cil_post_db_array_helper()458 db->val_to_role = cil_malloc(sizeof(*db->val_to_role) * db->num_roles); in __cil_post_db_array_helper()466 db->val_to_user = cil_malloc(sizeof(*db->val_to_user) * db->num_users); in __cil_post_db_array_helper()488 sort->array = cil_malloc(sizeof(*sort->array)*count); in __cil_post_db_array_helper()499 sort->array = cil_malloc(sizeof(*sort->array)*count); in __cil_post_db_array_helper()510 sort->array = cil_malloc(sizeof(*sort->array)*count); in __cil_post_db_array_helper()[all …]
42 struct cil_stack *new_stack = cil_malloc(sizeof(*new_stack)); in cil_stack_init()43 new_stack->stack = cil_malloc(sizeof(*(new_stack->stack)) * CIL_STACK_INIT_SIZE); in cil_stack_init()
232 ocontext_t *new = cil_malloc(sizeof(ocontext_t)); in cil_add_ocontext()251 common_datum_t *sepol_common = cil_malloc(sizeof(*sepol_common)); in cil_common_to_policydb()269 perm_datum_t *sepol_perm = cil_malloc(sizeof(*sepol_perm)); in cil_common_to_policydb()304 class_datum_t *sepol_class = cil_malloc(sizeof(*sepol_class)); in cil_classorder_to_policydb()347 perm_datum_t *sepol_perm = cil_malloc(sizeof(*sepol_perm)); in cil_classorder_to_policydb()374 role_datum_t *sepol_role = cil_malloc(sizeof(*sepol_role)); in cil_role_to_policydb()465 type_datum_t *sepol_type = cil_malloc(sizeof(*sepol_type)); in cil_type_to_policydb()517 type_datum_t *sepol_alias = cil_malloc(sizeof(*sepol_alias)); in cil_typealias_to_policydb()574 sepol_attr = cil_malloc(sizeof(*sepol_attr)); in cil_typeattribute_to_policydb()601 pdb->type_attr_map = cil_malloc(pdb->p_types.nprim * sizeof(ebitmap_t)); in __cil_typeattr_bitmap_init()[all …]
34 void *cil_malloc(size_t size);
34 *out_str = cil_malloc(len); in __cil_strlist_concat()133 *out_str = cil_malloc(len); in __cil_unfill_expr_helper()141 *out_str = cil_malloc(len); in __cil_unfill_expr_helper()154 *out_str = cil_malloc(len); in __cil_unfill_expr_helper()280 *out_str = cil_malloc(len); in cil_unfill_level()329 *out_str = cil_malloc(len); in cil_unfill_levelrange()365 *out_str = cil_malloc(len); in cil_unfill_context()398 *out_str = cil_malloc(len); in cil_unfill_permx()952 *out_str = cil_malloc(len); in cil_unfill_classperms()
49 struct cil_list *new_list = cil_malloc(sizeof(*new_list)); in cil_list_init()81 struct cil_list_item *new_item = cil_malloc(sizeof(*new_item)); in cil_list_item_init()
50 void *cil_malloc(size_t size) in cil_malloc() function
78 strpool_ref = cil_malloc(sizeof(*strpool_ref)); in cil_strpool_add()
646 new = cil_malloc(len+1); in cil_cons_expr_to_string()665 new = cil_malloc(len); in cil_classperms_to_string()1769 addr = cil_malloc(INET_ADDRSTRLEN); in cil_nodecons_to_policy()1779 mask = cil_malloc(INET_ADDRSTRLEN); in cil_nodecons_to_policy()1789 addr = cil_malloc(INET6_ADDRSTRLEN); in cil_nodecons_to_policy()1799 mask = cil_malloc(INET6_ADDRSTRLEN); in cil_nodecons_to_policy()
55 struct hll_info *new = cil_malloc(sizeof(*new)); in push_hll_info()
174 node = cil_malloc(sizeof(*node)); in cil_complex_symtab_insert()
150 struct cil_tree *new_tree = cil_malloc(sizeof(*new_tree)); in cil_tree_init()210 struct cil_tree_node *new_node = cil_malloc(sizeof(*new_node)); in cil_tree_node_init()413 expr_str = cil_malloc(len); in cil_expr_to_string()424 expr_str = cil_malloc(len); in cil_expr_to_string()
93 datum = cil_malloc(sizeof(*datum)); in __extract_attributees_helper()193 tmp_new = cil_malloc(len); in __cil_attrib_get_versname()
1132 *ordered = cil_malloc(sizeof(**ordered)); in __cil_ordered_list_init()
49 struct cil_args_copy *args = cil_malloc(sizeof(*args)); in gen_copy_args()
55 struct cil_args_resolve *args = cil_malloc(sizeof(*args)); in gen_resolve_args()
53 struct cil_args_build *args = cil_malloc(sizeof(*args)); in gen_build_args()