Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/cil/src/
Dcil_reset_ast.c221 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()
Dcil.c2394 void cil_rangetransition_init(struct cil_rangetransition **rangetrans) in cil_rangetransition_init() argument
2396 *rangetrans = cil_malloc(sizeof(**rangetrans)); in cil_rangetransition_init()
2398 (*rangetrans)->src_str = NULL; in cil_rangetransition_init()
2399 (*rangetrans)->src = NULL; in cil_rangetransition_init()
2400 (*rangetrans)->exec_str = NULL; in cil_rangetransition_init()
2401 (*rangetrans)->exec = NULL; in cil_rangetransition_init()
2402 (*rangetrans)->obj_str = NULL; in cil_rangetransition_init()
2403 (*rangetrans)->obj = NULL; in cil_rangetransition_init()
2404 (*rangetrans)->range_str = NULL; in cil_rangetransition_init()
2405 (*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.c693 struct cil_rangetransition *rangetrans = current->data; in cil_resolve_rangetransition() local
700 rc = cil_resolve_name(current, rangetrans->src_str, CIL_SYM_TYPES, extra_args, &src_datum); in cil_resolve_rangetransition()
704 rangetrans->src = src_datum; in cil_resolve_rangetransition()
706 rc = cil_resolve_name(current, rangetrans->exec_str, CIL_SYM_TYPES, extra_args, &exec_datum); in cil_resolve_rangetransition()
710 rangetrans->exec = exec_datum; in cil_resolve_rangetransition()
712 rc = cil_resolve_name(current, rangetrans->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_rangetransition()
716 rangetrans->obj = (struct cil_class*)obj_datum; in cil_resolve_rangetransition()
718 if (rangetrans->range_str != NULL) { in cil_resolve_rangetransition()
719 …rc = cil_resolve_name(current, rangetrans->range_str, CIL_SYM_LEVELRANGES, extra_args, &range_datu… in cil_resolve_rangetransition()
723 rangetrans->range = (struct cil_levelrange*)range_datum; in cil_resolve_rangetransition()
[all …]
Dcil_build_ast.c3430 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 …]
Dcil_build_ast.h152 void cil_destroy_rangetransition(struct cil_rangetransition *rangetrans);
Dcil_internal.h1032 void cil_rangetransition_init(struct cil_rangetransition **rangetrans);
Dcil_binary.c3248 …ition_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_rangetransition *rangetrans) in cil_rangetransition_to_policydb() argument
3263 rc = __cil_expand_type(rangetrans->src, &src_bitmap); in cil_rangetransition_to_policydb()
3266 rc = __cil_expand_type(rangetrans->exec, &tgt_bitmap); in cil_rangetransition_to_policydb()
3269 class_list = cil_expand_class(rangetrans->obj); in cil_rangetransition_to_policydb()
3288 rc = __cil_levelrange_to_mls_range(pdb, rangetrans->range, newdatum); in cil_rangetransition_to_policydb()
Dcil_post.c1896 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()