Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/cil/src/
Dcil.c401 *db = cil_malloc(sizeof(**db)); in cil_db_init()
498 struct cil_root *r = cil_malloc(sizeof(*r)); in cil_root_init()
520 buffer = cil_malloc(size + 2); in cil_add_file()
1450 str_tmp = cil_malloc(str_len * sizeof(char)); in cil_userprefixes_to_string()
1684 str_tmp = cil_malloc(*size+1); in cil_selinuxusers_to_string()
1756 str_tmp = cil_malloc(*size+1); in cil_filecons_to_string()
2067 *sort = cil_malloc(sizeof(**sort)); in cil_sort_init()
2091 *netifcon = cil_malloc(sizeof(**netifcon)); in cil_netifcon_init()
2103 *ibendportcon = cil_malloc(sizeof(**ibendportcon)); in cil_ibendportcon_init()
2113 *context = cil_malloc(sizeof(**context)); in cil_context_init()
[all …]
Dcil_post.c213 struct fc_data *a_data = cil_malloc(sizeof(*a_data)); in cil_post_filecon_compare()
214 struct fc_data *b_data = cil_malloc(sizeof(*b_data)); in cil_post_filecon_compare()
215 char *a_path = cil_malloc(strlen(a_filecon->path_str) + 1); in cil_post_filecon_compare()
216 char *b_path = cil_malloc(strlen(b_filecon->path_str) + 1); in cil_post_filecon_compare()
691 db->val_to_type = cil_malloc(sizeof(*db->val_to_type) * db->num_types); in __cil_post_db_array_helper()
699 db->val_to_role = cil_malloc(sizeof(*db->val_to_role) * db->num_roles); in __cil_post_db_array_helper()
707 db->val_to_user = cil_malloc(sizeof(*db->val_to_user) * db->num_users); in __cil_post_db_array_helper()
729 sort->array = cil_malloc(sizeof(*sort->array)*count); in __cil_post_db_array_helper()
741 sort->array = cil_malloc(sizeof(*sort->array) * count); in __cil_post_db_array_helper()
751 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.c227 ocontext_t *new = cil_malloc(sizeof(ocontext_t)); in cil_add_ocontext()
246 common_datum_t *sepol_common = cil_malloc(sizeof(*sepol_common)); in cil_common_to_policydb()
264 perm_datum_t *sepol_perm = cil_malloc(sizeof(*sepol_perm)); in cil_common_to_policydb()
299 class_datum_t *sepol_class = cil_malloc(sizeof(*sepol_class)); in cil_classorder_to_policydb()
342 perm_datum_t *sepol_perm = cil_malloc(sizeof(*sepol_perm)); in cil_classorder_to_policydb()
369 role_datum_t *sepol_role = cil_malloc(sizeof(*sepol_role)); in cil_role_to_policydb()
458 type_datum_t *sepol_type = cil_malloc(sizeof(*sepol_type)); in cil_type_to_policydb()
510 type_datum_t *sepol_alias = cil_malloc(sizeof(*sepol_alias)); in cil_typealias_to_policydb()
567 sepol_attr = cil_malloc(sizeof(*sepol_attr)); in cil_typeattribute_to_policydb()
595 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_list.c49 struct cil_list *new_list = cil_malloc(sizeof(*new_list)); in cil_list_init()
82 struct cil_list_item *new_item = cil_malloc(sizeof(*new_item)); in cil_list_item_init()
Dcil_mem.c38 void *cil_malloc(size_t size) in cil_malloc() function
Dcil_tree.c179 struct cil_tree *new_tree = cil_malloc(sizeof(*new_tree)); in cil_tree_init()
226 struct cil_tree_node *new_node = cil_malloc(sizeof(*new_node)); in cil_tree_node_init()
Dcil_strpool.c76 strpool_ref = cil_malloc(sizeof(*strpool_ref)); in cil_strpool_add()
Dcil_policy.c643 new = cil_malloc(len+1); in cil_cons_expr_to_string()
662 new = cil_malloc(len); in cil_classperms_to_string()
1800 addr = cil_malloc(INET_ADDRSTRLEN); in cil_nodecons_to_policy()
1810 mask = cil_malloc(INET_ADDRSTRLEN); in cil_nodecons_to_policy()
1820 addr = cil_malloc(INET6_ADDRSTRLEN); in cil_nodecons_to_policy()
1830 mask = cil_malloc(INET6_ADDRSTRLEN); in cil_nodecons_to_policy()
Dcil_parser.c54 struct hll_info *new = cil_malloc(sizeof(*new)); in push_hll_info()
Dcil_symtab.c176 node = cil_malloc(sizeof(*node)); in cil_complex_symtab_insert()
Dcil_resolve_ast.c1177 *ordered = cil_malloc(sizeof(**ordered)); in __cil_ordered_list_init()
/third_party/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()