Home
last modified time | relevance | path

Searched refs:cil_malloc (Results 1 – 15 of 15) sorted by relevance

/external/selinux/libsepol/cil/src/
Dcil.c230 *db = cil_malloc(sizeof(**db)); in cil_db_init()
315 struct cil_root *r = cil_malloc(sizeof(*r)); in cil_root_init()
337 buffer = cil_malloc(size + 2); in cil_add_file()
1150 str_tmp = cil_malloc(str_len * sizeof(char)); in cil_userprefixes_to_string()
1393 str_tmp = cil_malloc(*size+1); in cil_selinuxusers_to_string()
1476 str_tmp = cil_malloc(*size+1); in cil_filecons_to_string()
1718 *sort = cil_malloc(sizeof(**sort)); in cil_sort_init()
1742 *netifcon = cil_malloc(sizeof(**netifcon)); in cil_netifcon_init()
1754 *context = cil_malloc(sizeof(**context)); in cil_context_init()
1769 *level = cil_malloc(sizeof(**level)); in cil_level_init()
[all …]
Dcil_binary.c224 ocontext_t *new = cil_malloc(sizeof(ocontext_t)); in cil_add_ocontext()
292 common_datum_t *sepol_common = cil_malloc(sizeof(*sepol_common)); in cil_common_to_policydb()
310 perm_datum_t *sepol_perm = cil_malloc(sizeof(*sepol_perm)); in cil_common_to_policydb()
345 class_datum_t *sepol_class = cil_malloc(sizeof(*sepol_class)); in cil_classorder_to_policydb()
380 perm_datum_t *sepol_perm = cil_malloc(sizeof(*sepol_perm)); in cil_classorder_to_policydb()
407 role_datum_t *sepol_role = cil_malloc(sizeof(*sepol_role)); in cil_role_to_policydb()
498 type_datum_t *sepol_type = cil_malloc(sizeof(*sepol_type)); in cil_type_to_policydb()
548 type_datum_t *sepol_alias = cil_malloc(sizeof(*sepol_alias)); in cil_typealias_to_policydb()
605 sepol_attr = cil_malloc(sizeof(*sepol_attr)); in cil_typeattribute_to_policydb()
630 pdb->type_attr_map = cil_malloc(pdb->p_types.nprim * sizeof(ebitmap_t)); in __cil_typeattr_bitmap_init()
[all …]
Dcil_post.c118 struct fc_data *a_data = cil_malloc(sizeof(*a_data)); in cil_post_filecon_compare()
119 struct fc_data *b_data = cil_malloc(sizeof(*b_data)); in cil_post_filecon_compare()
120 char *a_path = cil_malloc(strlen(a_filecon->path_str) + 1); in cil_post_filecon_compare()
122 char *b_path = cil_malloc(strlen(b_filecon->path_str) + 1); in cil_post_filecon_compare()
422 db->val_to_type = cil_malloc(sizeof(*db->val_to_type) * db->num_types); in __cil_post_db_array_helper()
430 db->val_to_role = cil_malloc(sizeof(*db->val_to_role) * db->num_roles); in __cil_post_db_array_helper()
452 sort->array = cil_malloc(sizeof(*sort->array)*count); in __cil_post_db_array_helper()
463 sort->array = cil_malloc(sizeof(*sort->array)*count); in __cil_post_db_array_helper()
474 sort->array = cil_malloc(sizeof(*sort->array)*count); in __cil_post_db_array_helper()
485 sort->array = cil_malloc(sizeof(*sort->array)*count); in __cil_post_db_array_helper()
[all …]
Dcil_stack.c42 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()
Dcil_mem.h34 void *cil_malloc(size_t size);
Dcil_list.c49 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()
Dcil_mem.c49 void *cil_malloc(size_t size) in cil_malloc() function
Dcil_strpool.c73 strpool_ref = cil_malloc(sizeof(*strpool_ref)); in cil_strpool_add()
Dcil_policy.c177 buf = cil_malloc(INET_ADDRSTRLEN); in cil_nodecon_to_policy()
180 buf = cil_malloc(INET6_ADDRSTRLEN); in cil_nodecon_to_policy()
194 buf = cil_malloc(INET_ADDRSTRLEN); in cil_nodecon_to_policy()
197 buf = cil_malloc(INET6_ADDRSTRLEN); in cil_nodecon_to_policy()
326 new_data = cil_malloc(sizeof(*new_data)); in cil_multimap_insert()
719 expr_str = cil_malloc(len); in cil_expr_to_string()
730 expr_str = cil_malloc(len); in cil_expr_to_string()
1194 FILE **file_arr = cil_malloc(sizeof(FILE*) * NUM_POLICY_FILES); in cil_gen_policy()
Dcil_tree.c64 struct cil_tree *new_tree = cil_malloc(sizeof(*new_tree)); in cil_tree_init()
124 struct cil_tree_node *new_node = cil_malloc(sizeof(*new_node)); in cil_tree_node_init()
327 expr_str = cil_malloc(len); in cil_expr_to_string()
338 expr_str = cil_malloc(len); in cil_expr_to_string()
Dcil_symtab.c174 node = cil_malloc(sizeof(*node)); in cil_complex_symtab_insert()
Dcil_resolve_ast.c1056 *ordered = cil_malloc(sizeof(**ordered)); in __cil_ordered_list_init()
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_copy_ast.c49 struct cil_args_copy *args = cil_malloc(sizeof(*args)); in gen_copy_args()
Dtest_cil_resolve_ast.c55 struct cil_args_resolve *args = cil_malloc(sizeof(*args)); in gen_resolve_args()
Dtest_cil_build_ast.c53 struct cil_args_build *args = cil_malloc(sizeof(*args)); in gen_build_args()