Searched refs:roletrans (Results 1 – 9 of 9) sorted by relevance
/external/selinux/libsepol/cil/src/ |
D | cil_tree.c | 728 struct cil_roletransition *roletrans = node->data; in cil_tree_print_node() local 731 if (roletrans->src != NULL) { in cil_tree_print_node() 732 cil_log(CIL_INFO, " %s", roletrans->src->datum.name); in cil_tree_print_node() 734 cil_log(CIL_INFO, " %s", roletrans->src_str); in cil_tree_print_node() 737 if (roletrans->tgt != NULL) { in cil_tree_print_node() 738 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)roletrans->tgt)->name); in cil_tree_print_node() 740 cil_log(CIL_INFO, " %s", roletrans->tgt_str); in cil_tree_print_node() 743 if (roletrans->obj != NULL) { in cil_tree_print_node() 744 cil_log(CIL_INFO, " %s", roletrans->obj->datum.name); in cil_tree_print_node() 746 cil_log(CIL_INFO, " %s", roletrans->obj_str); in cil_tree_print_node() [all …]
|
D | cil_binary.h | 276 …db(policydb_t *pdb, const struct cil_db *db, struct cil_roletransition *roletrans, hashtab_t role_…
|
D | cil_policy.c | 1032 struct cil_roletransition *roletrans = (struct cil_roletransition*)current->data; in cil_name_to_policy() local 1033 char *src_str = ((struct cil_symtab_datum*)roletrans->src)->name; in cil_name_to_policy() 1034 char *tgt_str = ((struct cil_symtab_datum*)roletrans->tgt)->name; in cil_name_to_policy() 1035 char *obj_str = ((struct cil_symtab_datum*)roletrans->obj)->name; in cil_name_to_policy() 1036 char *result_str = ((struct cil_symtab_datum*)roletrans->result)->name; in cil_name_to_policy()
|
D | cil_verify.c | 825 struct cil_roletransition *roletrans = NULL; in __cil_verify_rule() local 830 roletrans = node->data; in __cil_verify_rule() 831 ckey.key1 = (intptr_t)roletrans->src; in __cil_verify_rule() 832 ckey.key2 = (intptr_t)roletrans->tgt; in __cil_verify_rule() 833 ckey.key3 = (intptr_t)roletrans->obj; in __cil_verify_rule()
|
D | cil_resolve_ast.c | 1002 struct cil_roletransition *roletrans = current->data; in cil_resolve_roletransition() local 1010 rc = cil_resolve_name(current, roletrans->src_str, CIL_SYM_ROLES, extra_args, &src_datum); in cil_resolve_roletransition() 1014 roletrans->src = (struct cil_role*)src_datum; in cil_resolve_roletransition() 1016 rc = cil_resolve_name(current, roletrans->tgt_str, CIL_SYM_TYPES, extra_args, &tgt_datum); in cil_resolve_roletransition() 1020 roletrans->tgt = tgt_datum; in cil_resolve_roletransition() 1023 rc = cil_resolve_name(current, roletrans->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_roletransition() 1027 roletrans->obj = (struct cil_class*)obj_datum; in cil_resolve_roletransition() 1029 rc = cil_resolve_name(current, roletrans->result_str, CIL_SYM_ROLES, extra_args, &result_datum); in cil_resolve_roletransition() 1037 …cil_log(CIL_ERR, "roletransition must result in a role, but %s is a %s\n", roletrans->result_str, … in cil_resolve_roletransition() 1040 roletrans->result = (struct cil_role*)result_datum; in cil_resolve_roletransition()
|
D | cil_build_ast.c | 1793 struct cil_roletransition *roletrans = NULL; in cil_gen_roletransition() local 1805 cil_roletransition_init(&roletrans); in cil_gen_roletransition() 1807 roletrans->src_str = parse_current->next->data; in cil_gen_roletransition() 1808 roletrans->tgt_str = parse_current->next->next->data; in cil_gen_roletransition() 1809 roletrans->obj_str = parse_current->next->next->next->data; in cil_gen_roletransition() 1810 roletrans->result_str = parse_current->next->next->next->next->data; in cil_gen_roletransition() 1812 ast_node->data = roletrans; in cil_gen_roletransition() 1820 cil_destroy_roletransition(roletrans); in cil_gen_roletransition() 1824 void cil_destroy_roletransition(struct cil_roletransition *roletrans) in cil_destroy_roletransition() argument 1826 if (roletrans == NULL) { in cil_destroy_roletransition() [all …]
|
D | cil_build_ast.h | 104 void cil_destroy_roletransition(struct cil_roletransition *roletrans);
|
D | cil_internal.h | 977 void cil_roletransition_init(struct cil_roletransition **roletrans);
|
D | cil_binary.c | 2146 …db(policydb_t *pdb, const struct cil_db *db, struct cil_roletransition *roletrans, hashtab_t role_… in cil_roletrans_to_policydb() argument 2161 rc = __cil_expand_role(DATUM(roletrans->src), &role_bitmap); in cil_roletrans_to_policydb() 2164 rc = __cil_expand_type(roletrans->tgt, &type_bitmap); in cil_roletrans_to_policydb() 2167 class_list = cil_expand_class(roletrans->obj); in cil_roletrans_to_policydb() 2169 rc = __cil_get_sepol_role_datum(pdb, DATUM(roletrans->result), &sepol_result); in cil_roletrans_to_policydb()
|