Home
last modified time | relevance | path

Searched refs:p_role_val_to_name (Results 1 – 15 of 15) sorted by relevance

/external/selinux/libsepol/src/
Dcontext.c102 strlen(policydb->p_role_val_to_name[context->role - 1]) + 1; in context_to_string()
121 policydb->p_role_val_to_name[context->role - 1], in context_to_string()
126 strlen(policydb->p_role_val_to_name[context->role - 1]) + 1 + in context_to_string()
261 policydb->p_role_val_to_name[context->role - in context_to_record()
Droles.c35 tmp_roles[i] = strdup(policydb->p_role_val_to_name[i]); in sepol_role_list()
Dkernel_to_cil.c187 names = ebitmap_to_str(&curr->names, pdb->p_role_val_to_name, 1); in constraint_expr_to_str()
1258 rc = strs_add(strs, pdb->p_role_val_to_name[i]); in write_role_attributes_to_cil()
2146 rc = strs_add(strs, pdb->p_role_val_to_name[i]); in write_role_decl_rules_to_cil()
2177 parent = pdb->p_role_val_to_name[role->bounds - 1]; in write_role_decl_rules_to_cil()
2266 role = pdb->p_role_val_to_name[curr->role - 1]; in write_role_transition_rules_to_cil()
2269 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_transition_rules_to_cil()
2307 role = pdb->p_role_val_to_name[curr->role - 1]; in write_role_allow_rules_to_cil()
2308 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_allow_rules_to_cil()
2383 rc = ebitmap_to_strs(roles, role_strs, pdb->p_role_val_to_name); in write_user_decl_rules_to_cil()
2477 role = pdb->p_role_val_to_name[con->role - 1]; in context_to_str()
Dkernel_to_conf.c184 names = ebitmap_to_str(&curr->names, pdb->p_role_val_to_name, 1); in constraint_expr_to_str()
1232 rc = strs_add(strs, pdb->p_role_val_to_name[i]); in write_role_attributes_to_conf()
2111 rc = strs_add(strs, pdb->p_role_val_to_name[i]); in write_role_decl_rules_to_conf()
2189 role = pdb->p_role_val_to_name[curr->role - 1]; in write_role_transition_rules_to_conf()
2192 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_transition_rules_to_conf()
2230 role = pdb->p_role_val_to_name[curr->role - 1]; in write_role_allow_rules_to_conf()
2231 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_allow_rules_to_conf()
2293 pdb->p_role_val_to_name, 1); in write_user_decl_rules_to_conf()
2342 role = pdb->p_role_val_to_name[con->role - 1]; in context_to_str()
Dmodule_to_cil.c838 val_to_name = pdb->p_role_val_to_name; in cil_print_attr_strs()
1054 rc = ebitmap_to_names(&rs->roles, pdb->p_role_val_to_name, names, num_names); in process_roleset()
1479 pdb->p_role_val_to_name[rule->new_role - 1]); in role_trans_to_cil()
1810 rc = ebitmap_to_names(&expr->names, pdb->p_role_val_to_name, &name_list, &num_names); in constraint_expr_to_string()
2190 cil_println(indent, "(rolebounds %s %s)", key, pdb->p_role_val_to_name[role->bounds - 1]); in role_to_cil()
2206 cil_printf("%s ", pdb->p_role_val_to_name[i]); in role_to_cil()
2338 cil_println(indent, "(userrole %s %s)", key, pdb->p_role_val_to_name[i]); in user_to_cil()
2532 pdb->p_role_val_to_name[con->role - 1], in context_to_cil()
Dusers.c42 char *role = policydb->p_role_val_to_name[bit]; in user_to_record()
Dexpand.c778 base_reg_role_id = state->base->p_role_val_to_name[i]; in role_fix_callback()
1342 state->out->p_role_val_to_name[i], in copy_role_trans()
1345 state->out->p_role_val_to_name[mapped_role - 1], in copy_role_trans()
1346 state->out->p_role_val_to_name[cur_trans->new_role - 1]); in copy_role_trans()
Dhierarchy.c530 (char *)k, a->p->p_role_val_to_name[rp->s.value - 1]); in bounds_check_role_callback()
Dservices.c257 policydb->p_role_val_to_name[i]); in get_name_list()
1660 p_role_val_to_name[c->role - 1]); in convert_context()
Dpolicydb.c1007 if (p->p_role_val_to_name[role->s.value - 1] != NULL) in role_index()
1009 p->p_role_val_to_name[role->s.value - 1] = (char *)key; in role_index()
/external/selinux/libsepol/tests/
Dtest-expander-users.c52 if (strcmp(role_names[j], p->p_role_val_to_name[i]) == 0) { in check_user_roles()
/external/selinux/checkpolicy/test/
Ddismod.c446 role = p->p_role_val_to_name[cur->context[0].role - 1]; in display_initial_sids()
455 role = p->p_role_val_to_name[cur->context[0].role - 1]; in display_initial_sids()
/external/selinux/checkpolicy/
Dmodule_compiler.c244 policydbp->p_role_val_to_name[role->bounds - 1]); in role_implicit_bounds()
489 policydbp->p_role_val_to_name[user->bounds - 1]); in user_implicit_bounds()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h535 #define p_role_val_to_name sym_val_to_name[SYM_ROLES] macro
/external/selinux/libsepol/cil/src/
Dcil_binary.c4002 pdb->p_role_val_to_name[role->s.value - 1] = (char *)key; in __cil_role_val_array_insert()
4093 policydb->p_role_val_to_name = cil_malloc(sizeof(char *) * policydb->p_roles.nprim); in __cil_policydb_val_arrays_create()