Searched refs:nametypetrans (Results 1 – 7 of 7) sorted by relevance
/external/selinux/libsepol/cil/src/ |
D | cil_tree.c | 1001 struct cil_nametypetransition *nametypetrans = node->data; in cil_tree_print_node() local 1004 if (nametypetrans->src != NULL) { in cil_tree_print_node() 1005 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)nametypetrans->src)->name); in cil_tree_print_node() 1007 cil_log(CIL_INFO, " %s", nametypetrans->src_str); in cil_tree_print_node() 1010 if (nametypetrans->tgt != NULL) { in cil_tree_print_node() 1011 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)nametypetrans->tgt)->name); in cil_tree_print_node() 1013 cil_log(CIL_INFO, " %s", nametypetrans->tgt_str); in cil_tree_print_node() 1016 if (nametypetrans->obj != NULL) { in cil_tree_print_node() 1017 cil_log(CIL_INFO, " %s", nametypetrans->obj->datum.name); in cil_tree_print_node() 1019 cil_log(CIL_INFO, " %s", nametypetrans->obj_str); in cil_tree_print_node() [all …]
|
D | cil.c | 2046 void cil_nametypetransition_init(struct cil_nametypetransition **nametypetrans) in cil_nametypetransition_init() argument 2048 *nametypetrans = cil_malloc(sizeof(**nametypetrans)); in cil_nametypetransition_init() 2050 (*nametypetrans)->src_str = NULL; in cil_nametypetransition_init() 2051 (*nametypetrans)->src = NULL; in cil_nametypetransition_init() 2052 (*nametypetrans)->tgt_str = NULL; in cil_nametypetransition_init() 2053 (*nametypetrans)->tgt = NULL; in cil_nametypetransition_init() 2054 (*nametypetrans)->obj_str = NULL; in cil_nametypetransition_init() 2055 (*nametypetrans)->obj = NULL; in cil_nametypetransition_init() 2056 (*nametypetrans)->name_str = NULL; in cil_nametypetransition_init() 2057 (*nametypetrans)->name = NULL; in cil_nametypetransition_init() [all …]
|
D | cil_policy.c | 631 …ition_to_policy(FILE **file_arr, uint32_t file_index, struct cil_nametypetransition *nametypetrans) in cil_nametypetransition_to_policy() argument 633 char *src_str = ((struct cil_symtab_datum*)nametypetrans->src)->name; in cil_nametypetransition_to_policy() 634 char *tgt_str = ((struct cil_symtab_datum*)nametypetrans->tgt)->name; in cil_nametypetransition_to_policy() 635 char *obj_str = ((struct cil_symtab_datum*)nametypetrans->obj)->name; in cil_nametypetransition_to_policy() 636 char *result_str = ((struct cil_symtab_datum*)nametypetrans->result)->name; in cil_nametypetransition_to_policy() 638 …e_transition %s %s : %s %s %s;\n", src_str, tgt_str, obj_str, result_str, nametypetrans->name_str); in cil_nametypetransition_to_policy() 1024 struct cil_nametypetransition *nametypetrans = (struct cil_nametypetransition*)current->data; in cil_name_to_policy() local 1025 rc = cil_nametypetransition_to_policy(file_arr, ALLOWS, nametypetrans); in cil_name_to_policy()
|
D | cil_resolve_ast.c | 565 struct cil_nametypetransition *nametypetrans = current->data; in cil_resolve_nametypetransition() local 574 rc = cil_resolve_name(current, nametypetrans->src_str, CIL_SYM_TYPES, extra_args, &src_datum); in cil_resolve_nametypetransition() 578 nametypetrans->src = src_datum; in cil_resolve_nametypetransition() 581 rc = cil_resolve_name(current, nametypetrans->tgt_str, CIL_SYM_TYPES, extra_args, &tgt_datum); in cil_resolve_nametypetransition() 585 nametypetrans->tgt = tgt_datum; in cil_resolve_nametypetransition() 588 rc = cil_resolve_name(current, nametypetrans->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_nametypetransition() 592 nametypetrans->obj = (struct cil_class*)obj_datum; in cil_resolve_nametypetransition() 594 nametypetrans->name = __cil_insert_name(args->db, nametypetrans->name_str, current); in cil_resolve_nametypetransition() 595 if (nametypetrans->name == NULL) { in cil_resolve_nametypetransition() 596 rc = cil_resolve_name(current, nametypetrans->name_str, CIL_SYM_NAMES, extra_args, &name_datum); in cil_resolve_nametypetransition() [all …]
|
D | cil_build_ast.c | 3292 struct cil_nametypetransition *nametypetrans = NULL; in cil_gen_typetransition() local 3294 cil_nametypetransition_init(&nametypetrans); in cil_gen_typetransition() 3296 nametypetrans->src_str = s1; in cil_gen_typetransition() 3297 nametypetrans->tgt_str = s2; in cil_gen_typetransition() 3298 nametypetrans->obj_str = s3; in cil_gen_typetransition() 3299 nametypetrans->result_str = s5; in cil_gen_typetransition() 3300 nametypetrans->name_str = s4; in cil_gen_typetransition() 3302 ast_node->data = nametypetrans; in cil_gen_typetransition() 3337 void cil_destroy_typetransition(struct cil_nametypetransition *nametypetrans) in cil_destroy_typetransition() argument 3339 if (nametypetrans == NULL) { in cil_destroy_typetransition() [all …]
|
D | cil_build_ast.h | 146 void cil_destroy_typetransition(struct cil_nametypetransition *nametypetrans);
|
D | cil_internal.h | 967 void cil_nametypetransition_init(struct cil_nametypetransition **nametypetrans);
|