Searched refs:rangetrans (Results 1 – 9 of 9) sorted by relevance
/third_party/selinux/libsepol/cil/src/ |
D | cil_reset_ast.c | 221 static void cil_reset_rangetransition(struct cil_rangetransition *rangetrans) in cil_reset_rangetransition() argument 223 if (rangetrans->range_str == NULL) { in cil_reset_rangetransition() 224 cil_reset_levelrange(rangetrans->range); in cil_reset_rangetransition() 226 rangetrans->range = NULL; in cil_reset_rangetransition()
|
D | cil.c | 2385 void cil_rangetransition_init(struct cil_rangetransition **rangetrans) in cil_rangetransition_init() argument 2387 *rangetrans = cil_malloc(sizeof(**rangetrans)); in cil_rangetransition_init() 2389 (*rangetrans)->src_str = NULL; in cil_rangetransition_init() 2390 (*rangetrans)->src = NULL; in cil_rangetransition_init() 2391 (*rangetrans)->exec_str = NULL; in cil_rangetransition_init() 2392 (*rangetrans)->exec = NULL; in cil_rangetransition_init() 2393 (*rangetrans)->obj_str = NULL; in cil_rangetransition_init() 2394 (*rangetrans)->obj = NULL; in cil_rangetransition_init() 2395 (*rangetrans)->range_str = NULL; in cil_rangetransition_init() 2396 (*rangetrans)->range = NULL; in cil_rangetransition_init()
|
D | cil_binary.h | 330 …tion_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_rangetransition *rangetrans);
|
D | cil_resolve_ast.c | 683 struct cil_rangetransition *rangetrans = current->data; in cil_resolve_rangetransition() local 690 rc = cil_resolve_name(current, rangetrans->src_str, CIL_SYM_TYPES, extra_args, &src_datum); in cil_resolve_rangetransition() 694 rangetrans->src = src_datum; in cil_resolve_rangetransition() 696 rc = cil_resolve_name(current, rangetrans->exec_str, CIL_SYM_TYPES, extra_args, &exec_datum); in cil_resolve_rangetransition() 700 rangetrans->exec = exec_datum; in cil_resolve_rangetransition() 702 rc = cil_resolve_name(current, rangetrans->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_rangetransition() 706 rangetrans->obj = (struct cil_class*)obj_datum; in cil_resolve_rangetransition() 708 if (rangetrans->range_str != NULL) { in cil_resolve_rangetransition() 709 …rc = cil_resolve_name(current, rangetrans->range_str, CIL_SYM_LEVELRANGES, extra_args, &range_datu… in cil_resolve_rangetransition() 713 rangetrans->range = (struct cil_levelrange*)range_datum; in cil_resolve_rangetransition() [all …]
|
D | cil_build_ast.c | 3430 struct cil_rangetransition *rangetrans = NULL; in cil_gen_rangetransition() local 3442 cil_rangetransition_init(&rangetrans); in cil_gen_rangetransition() 3444 rangetrans->src_str = parse_current->next->data; in cil_gen_rangetransition() 3445 rangetrans->exec_str = parse_current->next->next->data; in cil_gen_rangetransition() 3446 rangetrans->obj_str = parse_current->next->next->next->data; in cil_gen_rangetransition() 3448 rangetrans->range_str = NULL; in cil_gen_rangetransition() 3451 rangetrans->range_str = parse_current->next->next->next->next->data; in cil_gen_rangetransition() 3453 cil_levelrange_init(&rangetrans->range); in cil_gen_rangetransition() 3455 rc = cil_fill_levelrange(parse_current->next->next->next->next->cl_head, rangetrans->range); in cil_gen_rangetransition() 3461 ast_node->data = rangetrans; in cil_gen_rangetransition() [all …]
|
D | cil_build_ast.h | 152 void cil_destroy_rangetransition(struct cil_rangetransition *rangetrans);
|
D | cil_internal.h | 1031 void cil_rangetransition_init(struct cil_rangetransition **rangetrans);
|
D | cil_binary.c | 3160 …ition_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_rangetransition *rangetrans) in cil_rangetransition_to_policydb() argument 3175 rc = __cil_expand_type(rangetrans->src, &src_bitmap); in cil_rangetransition_to_policydb() 3178 rc = __cil_expand_type(rangetrans->exec, &tgt_bitmap); in cil_rangetransition_to_policydb() 3181 class_list = cil_expand_class(rangetrans->obj); in cil_rangetransition_to_policydb() 3200 rc = __cil_levelrange_to_mls_range(pdb, rangetrans->range, newdatum); in cil_rangetransition_to_policydb()
|
D | cil_post.c | 1896 struct cil_rangetransition *rangetrans = node->data; in __cil_post_db_cat_helper() local 1897 rc = __evaluate_levelrange_expression(rangetrans->range, db); in __cil_post_db_cat_helper()
|