Searched refs:roletrans (Results 1 – 8 of 8) sorted by relevance
/external/selinux/libsepol/cil/src/ |
D | cil_tree.c | 829 struct cil_roletransition *roletrans = node->data; in cil_tree_print_node() local 832 if (roletrans->src != NULL) { in cil_tree_print_node() 833 cil_log(CIL_INFO, " %s", roletrans->src->datum.name); in cil_tree_print_node() 835 cil_log(CIL_INFO, " %s", roletrans->src_str); in cil_tree_print_node() 838 if (roletrans->tgt != NULL) { in cil_tree_print_node() 839 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)roletrans->tgt)->name); in cil_tree_print_node() 841 cil_log(CIL_INFO, " %s", roletrans->tgt_str); in cil_tree_print_node() 844 if (roletrans->obj != NULL) { in cil_tree_print_node() 845 cil_log(CIL_INFO, " %s", roletrans->obj->datum.name); in cil_tree_print_node() 847 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_verify.c | 833 struct cil_roletransition *roletrans = NULL; in __cil_verify_rule() local 838 roletrans = node->data; in __cil_verify_rule() 839 ckey.key1 = (intptr_t)roletrans->src; in __cil_verify_rule() 840 ckey.key2 = (intptr_t)roletrans->tgt; in __cil_verify_rule() 841 ckey.key3 = (intptr_t)roletrans->obj; in __cil_verify_rule()
|
D | cil_resolve_ast.c | 1053 struct cil_roletransition *roletrans = current->data; in cil_resolve_roletransition() local 1061 rc = cil_resolve_name(current, roletrans->src_str, CIL_SYM_ROLES, extra_args, &src_datum); in cil_resolve_roletransition() 1065 roletrans->src = (struct cil_role*)src_datum; in cil_resolve_roletransition() 1067 rc = cil_resolve_name(current, roletrans->tgt_str, CIL_SYM_TYPES, extra_args, &tgt_datum); in cil_resolve_roletransition() 1071 roletrans->tgt = tgt_datum; in cil_resolve_roletransition() 1073 rc = cil_resolve_name(current, roletrans->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_roletransition() 1077 roletrans->obj = (struct cil_class*)obj_datum; in cil_resolve_roletransition() 1079 rc = cil_resolve_name(current, roletrans->result_str, CIL_SYM_ROLES, extra_args, &result_datum); in cil_resolve_roletransition() 1087 …cil_log(CIL_ERR, "roletransition must result in a role, but %s is a %s\n", roletrans->result_str, … in cil_resolve_roletransition() 1090 roletrans->result = (struct cil_role*)result_datum; in cil_resolve_roletransition()
|
D | cil_build_ast.c | 1816 struct cil_roletransition *roletrans = NULL; in cil_gen_roletransition() local 1828 cil_roletransition_init(&roletrans); in cil_gen_roletransition() 1830 roletrans->src_str = parse_current->next->data; in cil_gen_roletransition() 1831 roletrans->tgt_str = parse_current->next->next->data; in cil_gen_roletransition() 1832 roletrans->obj_str = parse_current->next->next->next->data; in cil_gen_roletransition() 1833 roletrans->result_str = parse_current->next->next->next->next->data; in cil_gen_roletransition() 1835 ast_node->data = roletrans; in cil_gen_roletransition() 1842 cil_destroy_roletransition(roletrans); in cil_gen_roletransition() 1846 void cil_destroy_roletransition(struct cil_roletransition *roletrans) in cil_destroy_roletransition() argument 1848 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 | 1029 void cil_roletransition_init(struct cil_roletransition **roletrans);
|
D | cil_binary.c | 2297 …db(policydb_t *pdb, const struct cil_db *db, struct cil_roletransition *roletrans, hashtab_t role_… in cil_roletrans_to_policydb() argument 2312 rc = __cil_expand_role(DATUM(roletrans->src), &role_bitmap); in cil_roletrans_to_policydb() 2315 rc = __cil_expand_type(roletrans->tgt, &type_bitmap); in cil_roletrans_to_policydb() 2318 class_list = cil_expand_class(roletrans->obj); in cil_roletrans_to_policydb() 2320 rc = __cil_get_sepol_role_datum(pdb, DATUM(roletrans->result), &sepol_result); in cil_roletrans_to_policydb()
|