Home
last modified time | relevance | path

Searched refs:rangetrans (Results 1 – 10 of 10) sorted by relevance

/external/selinux/libsepol/cil/src/
Dcil_tree.c1134 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 …]
Dcil_reset_ast.c202 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()
Dcil.c2301 void cil_rangetransition_init(struct cil_rangetransition **rangetrans) in cil_rangetransition_init() argument
2303 *rangetrans = cil_malloc(sizeof(**rangetrans)); in cil_rangetransition_init()
2305 (*rangetrans)->src_str = NULL; in cil_rangetransition_init()
2306 (*rangetrans)->src = NULL; in cil_rangetransition_init()
2307 (*rangetrans)->exec_str = NULL; in cil_rangetransition_init()
2308 (*rangetrans)->exec = NULL; in cil_rangetransition_init()
2309 (*rangetrans)->obj_str = NULL; in cil_rangetransition_init()
2310 (*rangetrans)->obj = NULL; in cil_rangetransition_init()
2311 (*rangetrans)->range_str = NULL; in cil_rangetransition_init()
2312 (*rangetrans)->range = NULL; in cil_rangetransition_init()
Dcil_binary.h330 …tion_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_rangetransition *rangetrans);
Dcil_resolve_ast.c675 struct cil_rangetransition *rangetrans = current->data; in cil_resolve_rangetransition() local
682 rc = cil_resolve_name(current, rangetrans->src_str, CIL_SYM_TYPES, extra_args, &src_datum); in cil_resolve_rangetransition()
686 rangetrans->src = src_datum; in cil_resolve_rangetransition()
688 rc = cil_resolve_name(current, rangetrans->exec_str, CIL_SYM_TYPES, extra_args, &exec_datum); in cil_resolve_rangetransition()
692 rangetrans->exec = exec_datum; in cil_resolve_rangetransition()
694 rc = cil_resolve_name(current, rangetrans->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_rangetransition()
698 rangetrans->obj = (struct cil_class*)obj_datum; in cil_resolve_rangetransition()
700 if (rangetrans->range_str != NULL) { in cil_resolve_rangetransition()
701 …rc = cil_resolve_name(current, rangetrans->range_str, CIL_SYM_LEVELRANGES, extra_args, &range_datu… in cil_resolve_rangetransition()
705 rangetrans->range = (struct cil_levelrange*)range_datum; in cil_resolve_rangetransition()
[all …]
Dcil_build_ast.c3429 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 …]
Dcil_build_ast.h150 void cil_destroy_rangetransition(struct cil_rangetransition *rangetrans);
Dcil_internal.h1020 void cil_rangetransition_init(struct cil_rangetransition **rangetrans);
Dcil_binary.c3075 …ition_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_rangetransition *rangetrans) in cil_rangetransition_to_policydb() argument
3090 rc = __cil_expand_type(rangetrans->src, &src_bitmap); in cil_rangetransition_to_policydb()
3093 rc = __cil_expand_type(rangetrans->exec, &tgt_bitmap); in cil_rangetransition_to_policydb()
3096 class_list = cil_expand_class(rangetrans->obj); in cil_rangetransition_to_policydb()
3115 rc = __cil_levelrange_to_mls_range(pdb, rangetrans->range, newdatum); in cil_rangetransition_to_policydb()
Dcil_post.c1878 struct cil_rangetransition *rangetrans = node->data; in __cil_post_db_cat_helper() local
1879 rc = __evaluate_levelrange_expression(rangetrans->range, db); in __cil_post_db_cat_helper()