Searched defs:roletrans (Results 1 - 6 of 6) sorted by relevance
/external/selinux/libsepol/cil/src/ |
H A D | cil_policy.c | 1032 struct cil_roletransition *roletrans = (struct cil_roletransition*)current->data; local 1033 char *src_str = ((struct cil_symtab_datum*)roletrans->src)->name; 1034 char *tgt_str = ((struct cil_symtab_datum*)roletrans->tgt)->name; 1035 char *obj_str = ((struct cil_symtab_datum*)roletrans->obj)->name; 1036 char *result_str = ((struct cil_symtab_datum*)roletrans->result)->name;
|
H A D | cil_tree.c | 725 struct cil_roletransition *roletrans = node->data; local 728 if (roletrans->src != NULL) { 729 cil_log(CIL_INFO, " %s", roletrans->src->datum.name); 731 cil_log(CIL_INFO, " %s", roletrans->src_str); 734 if (roletrans->tgt != NULL) { 735 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)roletrans->tgt)->name); 737 cil_log(CIL_INFO, " %s", roletrans->tgt_str); 740 if (roletrans->obj != NULL) { 741 cil_log(CIL_INFO, " %s", roletrans->obj->datum.name); 743 cil_log(CIL_INFO, " %s", roletrans [all...] |
H A D | cil_verify.c | 821 struct cil_roletransition *roletrans = NULL; local 826 roletrans = node->data; 827 ckey.key1 = (intptr_t)roletrans->src; 828 ckey.key2 = (intptr_t)roletrans->tgt; 829 ckey.key3 = (intptr_t)roletrans->obj;
|
H A D | cil_resolve_ast.c | 934 struct cil_roletransition *roletrans = current->data; local 942 rc = cil_resolve_name(current, roletrans->src_str, CIL_SYM_ROLES, extra_args, &src_datum); 946 roletrans->src = (struct cil_role*)src_datum; 948 rc = cil_resolve_name(current, roletrans->tgt_str, CIL_SYM_TYPES, extra_args, &tgt_datum); 952 roletrans->tgt = tgt_datum; 955 rc = cil_resolve_name(current, roletrans->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); 959 roletrans->obj = (struct cil_class*)obj_datum; 961 rc = cil_resolve_name(current, roletrans->result_str, CIL_SYM_ROLES, extra_args, &result_datum); 969 cil_log(CIL_ERR, "roletransition must result in a role, but %s is a %s\n", roletrans->result_str, cil_node_to_string(node)); 972 roletrans [all...] |
H A D | cil_binary.c | 1867 int cil_roletrans_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_roletransition *roletrans, hashtab_t role_trans_table) argument 1882 rc = __cil_expand_role(DATUM(roletrans->src), &role_bitmap); 1885 rc = __cil_expand_type(roletrans->tgt, &type_bitmap); 1888 class_list = cil_expand_class(roletrans->obj); 1890 rc = __cil_get_sepol_role_datum(pdb, DATUM(roletrans->result), &sepol_result);
|
H A D | cil_build_ast.c | 1638 struct cil_roletransition *roletrans = NULL; local 1650 cil_roletransition_init(&roletrans); 1652 roletrans->src_str = parse_current->next->data; 1653 roletrans->tgt_str = parse_current->next->next->data; 1654 roletrans->obj_str = parse_current->next->next->next->data; 1655 roletrans->result_str = parse_current->next->next->next->next->data; 1657 ast_node->data = roletrans; 1665 cil_destroy_roletransition(roletrans); 1669 void cil_destroy_roletransition(struct cil_roletransition *roletrans) argument 1671 if (roletrans [all...] |
Completed in 130 milliseconds