Home
last modified time | relevance | path

Searched refs:nametypetrans (Results 1 – 5 of 5) sorted by relevance

/external/selinux/libsepol/cil/src/
Dcil.c2378 void cil_nametypetransition_init(struct cil_nametypetransition **nametypetrans) in cil_nametypetransition_init() argument
2380 *nametypetrans = cil_malloc(sizeof(**nametypetrans)); in cil_nametypetransition_init()
2382 (*nametypetrans)->src_str = NULL; in cil_nametypetransition_init()
2383 (*nametypetrans)->src = NULL; in cil_nametypetransition_init()
2384 (*nametypetrans)->tgt_str = NULL; in cil_nametypetransition_init()
2385 (*nametypetrans)->tgt = NULL; in cil_nametypetransition_init()
2386 (*nametypetrans)->obj_str = NULL; in cil_nametypetransition_init()
2387 (*nametypetrans)->obj = NULL; in cil_nametypetransition_init()
2388 (*nametypetrans)->name_str = NULL; in cil_nametypetransition_init()
2389 (*nametypetrans)->name = NULL; in cil_nametypetransition_init()
[all …]
Dcil_resolve_ast.c631 struct cil_nametypetransition *nametypetrans = current->data; in cil_resolve_nametypetransition() local
640 rc = cil_resolve_name(current, nametypetrans->src_str, CIL_SYM_TYPES, extra_args, &src_datum); in cil_resolve_nametypetransition()
644 nametypetrans->src = src_datum; in cil_resolve_nametypetransition()
646 if (nametypetrans->tgt_str == CIL_KEY_SELF) { in cil_resolve_nametypetransition()
647 nametypetrans->tgt = args->db->selftype; in cil_resolve_nametypetransition()
649 rc = cil_resolve_name(current, nametypetrans->tgt_str, CIL_SYM_TYPES, extra_args, &tgt_datum); in cil_resolve_nametypetransition()
653 nametypetrans->tgt = tgt_datum; in cil_resolve_nametypetransition()
656 rc = cil_resolve_name(current, nametypetrans->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_nametypetransition()
660 nametypetrans->obj = (struct cil_class*)obj_datum; in cil_resolve_nametypetransition()
662 nametypetrans->name = __cil_insert_name(args->db, nametypetrans->name_str, current); in cil_resolve_nametypetransition()
[all …]
Dcil_build_ast.c3366 struct cil_nametypetransition *nametypetrans = NULL; in cil_gen_typetransition() local
3368 cil_nametypetransition_init(&nametypetrans); in cil_gen_typetransition()
3370 nametypetrans->src_str = s1; in cil_gen_typetransition()
3371 nametypetrans->tgt_str = s2; in cil_gen_typetransition()
3372 nametypetrans->obj_str = s3; in cil_gen_typetransition()
3373 nametypetrans->result_str = s5; in cil_gen_typetransition()
3374 nametypetrans->name_str = s4; in cil_gen_typetransition()
3376 ast_node->data = nametypetrans; in cil_gen_typetransition()
3410 void cil_destroy_typetransition(struct cil_nametypetransition *nametypetrans) in cil_destroy_typetransition() argument
3412 if (nametypetrans == NULL) { in cil_destroy_typetransition()
[all …]
Dcil_build_ast.h150 void cil_destroy_typetransition(struct cil_nametypetransition *nametypetrans);
Dcil_internal.h1031 void cil_nametypetransition_init(struct cil_nametypetransition **nametypetrans);