Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil.c410 *db = cil_malloc(sizeof(**db)); in cil_db_init()
505 struct cil_root *r = cil_malloc(sizeof(*r)); in cil_root_init()
527 buffer = cil_malloc(size + 2); in cil_add_file()
1400 str_tmp = cil_malloc(str_len * sizeof(char)); in cil_userprefixes_to_string()
1645 str_tmp = cil_malloc(*size+1); in cil_selinuxusers_to_string()
1728 str_tmp = cil_malloc(*size+1); in cil_filecons_to_string()
1984 *sort = cil_malloc(sizeof(**sort)); in cil_sort_init()
2008 *netifcon = cil_malloc(sizeof(**netifcon)); in cil_netifcon_init()
2020 *ibendportcon = cil_malloc(sizeof(**ibendportcon)); in cil_ibendportcon_init()
2030 *context = cil_malloc(sizeof(**context)); in cil_context_init()
[all …]
Dcil_post.c199 struct fc_data *a_data = cil_malloc(sizeof(*a_data)); in cil_post_filecon_compare()
200 struct fc_data *b_data = cil_malloc(sizeof(*b_data)); in cil_post_filecon_compare()
201 char *a_path = cil_malloc(strlen(a_filecon->path_str) + 1); in cil_post_filecon_compare()
203 char *b_path = cil_malloc(strlen(b_filecon->path_str) + 1); in cil_post_filecon_compare()
677 db->val_to_type = cil_malloc(sizeof(*db->val_to_type) * db->num_types); in __cil_post_db_array_helper()
685 db->val_to_role = cil_malloc(sizeof(*db->val_to_role) * db->num_roles); in __cil_post_db_array_helper()
693 db->val_to_user = cil_malloc(sizeof(*db->val_to_user) * db->num_users); in __cil_post_db_array_helper()
715 sort->array = cil_malloc(sizeof(*sort->array)*count); in __cil_post_db_array_helper()
727 sort->array = cil_malloc(sizeof(*sort->array) * count); in __cil_post_db_array_helper()
737 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_binary.c231 ocontext_t *new = cil_malloc(sizeof(ocontext_t)); in cil_add_ocontext()
250 common_datum_t *sepol_common = cil_malloc(sizeof(*sepol_common)); in cil_common_to_policydb()
268 perm_datum_t *sepol_perm = cil_malloc(sizeof(*sepol_perm)); in cil_common_to_policydb()
303 class_datum_t *sepol_class = cil_malloc(sizeof(*sepol_class)); in cil_classorder_to_policydb()
346 perm_datum_t *sepol_perm = cil_malloc(sizeof(*sepol_perm)); in cil_classorder_to_policydb()
373 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()
[all …]
Dcil_mem.h34 void *cil_malloc(size_t size);
Dcil_write_ast.c34 *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()
970 *out_str = cil_malloc(len); in cil_unfill_classperms()
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.c37 void *cil_malloc(size_t size) in cil_malloc() function
Dcil_strpool.c78 strpool_ref = cil_malloc(sizeof(*strpool_ref)); in cil_strpool_add()
Dcil_policy.c642 new = cil_malloc(len+1); in cil_cons_expr_to_string()
661 new = cil_malloc(len); in cil_classperms_to_string()
1797 addr = cil_malloc(INET_ADDRSTRLEN); in cil_nodecons_to_policy()
1807 mask = cil_malloc(INET_ADDRSTRLEN); in cil_nodecons_to_policy()
1817 addr = cil_malloc(INET6_ADDRSTRLEN); in cil_nodecons_to_policy()
1827 mask = cil_malloc(INET6_ADDRSTRLEN); in cil_nodecons_to_policy()
Dcil_parser.c55 struct hll_info *new = cil_malloc(sizeof(*new)); in push_hll_info()
Dcil_symtab.c174 node = cil_malloc(sizeof(*node)); in cil_complex_symtab_insert()
Dcil_tree.c150 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()
Dandroid.c93 datum = cil_malloc(sizeof(*datum)); in __extract_attributees_helper()
194 tmp_new = cil_malloc(len); in __cil_attrib_get_versname()
Dcil_resolve_ast.c1174 *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()