Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_tree.c1033 struct cil_rangetransition *rangetrans = node->data; in cil_tree_print_node() local
1036 if (rangetrans->src != NULL) { in cil_tree_print_node()
1037 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)rangetrans->src)->name); in cil_tree_print_node()
1039 cil_log(CIL_INFO, " %s", rangetrans->src_str); in cil_tree_print_node()
1042 if (rangetrans->exec != NULL) { in cil_tree_print_node()
1043 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)rangetrans->exec)->name); in cil_tree_print_node()
1045 cil_log(CIL_INFO, " %s", rangetrans->exec_str); in cil_tree_print_node()
1048 if (rangetrans->obj != NULL) { in cil_tree_print_node()
1049 cil_log(CIL_INFO, " %s", rangetrans->obj->datum.name); in cil_tree_print_node()
1051 cil_log(CIL_INFO, " %s", rangetrans->obj_str); in cil_tree_print_node()
[all …]
Dcil_reset_ast.c201 static void cil_reset_rangetransition(struct cil_rangetransition *rangetrans) in cil_reset_rangetransition() argument
203 if (rangetrans->range_str == NULL) { in cil_reset_rangetransition()
204 cil_reset_levelrange(rangetrans->range); in cil_reset_rangetransition()
Dcil.c2062 void cil_rangetransition_init(struct cil_rangetransition **rangetrans) in cil_rangetransition_init() argument
2064 *rangetrans = cil_malloc(sizeof(**rangetrans)); in cil_rangetransition_init()
2066 (*rangetrans)->src_str = NULL; in cil_rangetransition_init()
2067 (*rangetrans)->src = NULL; in cil_rangetransition_init()
2068 (*rangetrans)->exec_str = NULL; in cil_rangetransition_init()
2069 (*rangetrans)->exec = NULL; in cil_rangetransition_init()
2070 (*rangetrans)->obj_str = NULL; in cil_rangetransition_init()
2071 (*rangetrans)->obj = NULL; in cil_rangetransition_init()
2072 (*rangetrans)->range_str = NULL; in cil_rangetransition_init()
2073 (*rangetrans)->range = NULL; in cil_rangetransition_init()
Dcil_binary.h330 …(policydb_t *pdb, const struct cil_db *db, struct cil_rangetransition *rangetrans, hashtab_t range…
Dcil_resolve_ast.c625 struct cil_rangetransition *rangetrans = current->data; in cil_resolve_rangetransition() local
632 rc = cil_resolve_name(current, rangetrans->src_str, CIL_SYM_TYPES, extra_args, &src_datum); in cil_resolve_rangetransition()
636 rangetrans->src = src_datum; in cil_resolve_rangetransition()
639 rc = cil_resolve_name(current, rangetrans->exec_str, CIL_SYM_TYPES, extra_args, &exec_datum); in cil_resolve_rangetransition()
643 rangetrans->exec = exec_datum; in cil_resolve_rangetransition()
646 rc = cil_resolve_name(current, rangetrans->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_rangetransition()
650 rangetrans->obj = (struct cil_class*)obj_datum; in cil_resolve_rangetransition()
652 if (rangetrans->range_str != NULL) { in cil_resolve_rangetransition()
653 …rc = cil_resolve_name(current, rangetrans->range_str, CIL_SYM_LEVELRANGES, extra_args, &range_datu… in cil_resolve_rangetransition()
657 rangetrans->range = (struct cil_levelrange*)range_datum; in cil_resolve_rangetransition()
[all …]
Dcil_build_ast.c3357 struct cil_rangetransition *rangetrans = NULL; in cil_gen_rangetransition() local
3369 cil_rangetransition_init(&rangetrans); in cil_gen_rangetransition()
3371 rangetrans->src_str = parse_current->next->data; in cil_gen_rangetransition()
3372 rangetrans->exec_str = parse_current->next->next->data; in cil_gen_rangetransition()
3373 rangetrans->obj_str = parse_current->next->next->next->data; in cil_gen_rangetransition()
3375 rangetrans->range_str = NULL; in cil_gen_rangetransition()
3378 rangetrans->range_str = parse_current->next->next->next->next->data; in cil_gen_rangetransition()
3380 cil_levelrange_init(&rangetrans->range); in cil_gen_rangetransition()
3382 rc = cil_fill_levelrange(parse_current->next->next->next->next->cl_head, rangetrans->range); in cil_gen_rangetransition()
3388 ast_node->data = rangetrans; in cil_gen_rangetransition()
[all …]
Dcil_build_ast.h148 void cil_destroy_rangetransition(struct cil_rangetransition *rangetrans);
Dcil_internal.h968 void cil_rangetransition_init(struct cil_rangetransition **rangetrans);
Dcil_binary.c2932 …(policydb_t *pdb, const struct cil_db *db, struct cil_rangetransition *rangetrans, hashtab_t range… in cil_rangetransition_to_policydb() argument
2946 rc = __cil_expand_type(rangetrans->src, &src_bitmap); in cil_rangetransition_to_policydb()
2949 rc = __cil_expand_type(rangetrans->exec, &tgt_bitmap); in cil_rangetransition_to_policydb()
2952 class_list = cil_expand_class(rangetrans->obj); in cil_rangetransition_to_policydb()
2976 rc = __cil_levelrange_to_mls_range(pdb, rangetrans->range, &new->target_range); in cil_rangetransition_to_policydb()
Dcil_post.c1546 struct cil_rangetransition *rangetrans = node->data; in __cil_post_db_cat_helper() local
1547 rc = __evaluate_levelrange_expression(rangetrans->range, db); in __cil_post_db_cat_helper()