Searched refs:rangetrans (Results 1 – 10 of 10) sorted by relevance
/external/selinux/libsepol/cil/src/ |
D | cil_tree.c | 1134 struct cil_rangetransition *rangetrans = node->data; in cil_tree_print_node() local 1137 if (rangetrans->src != NULL) { in cil_tree_print_node() 1138 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)rangetrans->src)->name); in cil_tree_print_node() 1140 cil_log(CIL_INFO, " %s", rangetrans->src_str); in cil_tree_print_node() 1143 if (rangetrans->exec != NULL) { in cil_tree_print_node() 1144 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)rangetrans->exec)->name); in cil_tree_print_node() 1146 cil_log(CIL_INFO, " %s", rangetrans->exec_str); in cil_tree_print_node() 1149 if (rangetrans->obj != NULL) { in cil_tree_print_node() 1150 cil_log(CIL_INFO, " %s", rangetrans->obj->datum.name); in cil_tree_print_node() 1152 cil_log(CIL_INFO, " %s", rangetrans->obj_str); in cil_tree_print_node() [all …]
|
D | cil_reset_ast.c | 202 static void cil_reset_rangetransition(struct cil_rangetransition *rangetrans) in cil_reset_rangetransition() argument 204 if (rangetrans->range_str == NULL) { in cil_reset_rangetransition() 205 cil_reset_levelrange(rangetrans->range); in cil_reset_rangetransition()
|
D | cil.c | 2138 void cil_rangetransition_init(struct cil_rangetransition **rangetrans) in cil_rangetransition_init() argument 2140 *rangetrans = cil_malloc(sizeof(**rangetrans)); in cil_rangetransition_init() 2142 (*rangetrans)->src_str = NULL; in cil_rangetransition_init() 2143 (*rangetrans)->src = NULL; in cil_rangetransition_init() 2144 (*rangetrans)->exec_str = NULL; in cil_rangetransition_init() 2145 (*rangetrans)->exec = NULL; in cil_rangetransition_init() 2146 (*rangetrans)->obj_str = NULL; in cil_rangetransition_init() 2147 (*rangetrans)->obj = NULL; in cil_rangetransition_init() 2148 (*rangetrans)->range_str = NULL; in cil_rangetransition_init() 2149 (*rangetrans)->range = NULL; in cil_rangetransition_init()
|
D | cil_binary.h | 330 …(policydb_t *pdb, const struct cil_db *db, struct cil_rangetransition *rangetrans, hashtab_t range…
|
D | cil_resolve_ast.c | 679 struct cil_rangetransition *rangetrans = current->data; in cil_resolve_rangetransition() local 686 rc = cil_resolve_name(current, rangetrans->src_str, CIL_SYM_TYPES, extra_args, &src_datum); in cil_resolve_rangetransition() 690 rangetrans->src = src_datum; in cil_resolve_rangetransition() 692 rc = cil_resolve_name(current, rangetrans->exec_str, CIL_SYM_TYPES, extra_args, &exec_datum); in cil_resolve_rangetransition() 696 rangetrans->exec = exec_datum; in cil_resolve_rangetransition() 698 rc = cil_resolve_name(current, rangetrans->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_rangetransition() 702 rangetrans->obj = (struct cil_class*)obj_datum; in cil_resolve_rangetransition() 704 if (rangetrans->range_str != NULL) { in cil_resolve_rangetransition() 705 …rc = cil_resolve_name(current, rangetrans->range_str, CIL_SYM_LEVELRANGES, extra_args, &range_datu… in cil_resolve_rangetransition() 709 rangetrans->range = (struct cil_levelrange*)range_datum; in cil_resolve_rangetransition() [all …]
|
D | cil_build_ast.c | 3429 struct cil_rangetransition *rangetrans = NULL; in cil_gen_rangetransition() local 3441 cil_rangetransition_init(&rangetrans); in cil_gen_rangetransition() 3443 rangetrans->src_str = parse_current->next->data; in cil_gen_rangetransition() 3444 rangetrans->exec_str = parse_current->next->next->data; in cil_gen_rangetransition() 3445 rangetrans->obj_str = parse_current->next->next->next->data; in cil_gen_rangetransition() 3447 rangetrans->range_str = NULL; in cil_gen_rangetransition() 3450 rangetrans->range_str = parse_current->next->next->next->next->data; in cil_gen_rangetransition() 3452 cil_levelrange_init(&rangetrans->range); in cil_gen_rangetransition() 3454 rc = cil_fill_levelrange(parse_current->next->next->next->next->cl_head, rangetrans->range); in cil_gen_rangetransition() 3460 ast_node->data = rangetrans; in cil_gen_rangetransition() [all …]
|
D | cil_build_ast.h | 150 void cil_destroy_rangetransition(struct cil_rangetransition *rangetrans);
|
D | cil_internal.h | 1018 void cil_rangetransition_init(struct cil_rangetransition **rangetrans);
|
D | cil_binary.c | 3136 …(policydb_t *pdb, const struct cil_db *db, struct cil_rangetransition *rangetrans, hashtab_t range… in cil_rangetransition_to_policydb() argument 3151 rc = __cil_expand_type(rangetrans->src, &src_bitmap); in cil_rangetransition_to_policydb() 3154 rc = __cil_expand_type(rangetrans->exec, &tgt_bitmap); in cil_rangetransition_to_policydb() 3157 class_list = cil_expand_class(rangetrans->obj); in cil_rangetransition_to_policydb() 3181 rc = __cil_levelrange_to_mls_range(pdb, rangetrans->range, newdatum); in cil_rangetransition_to_policydb()
|
D | cil_post.c | 1886 struct cil_rangetransition *rangetrans = node->data; in __cil_post_db_cat_helper() local 1887 rc = __evaluate_levelrange_expression(rangetrans->range, db); in __cil_post_db_cat_helper()
|