Home
last modified time | relevance | path

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

/external/selinux/libsepol/src/
Dcontext.c101 strlen(policydb->p_role_val_to_name[context->role - 1]) + 1; in context_to_string()
120 policydb->p_role_val_to_name[context->role - 1], in context_to_string()
125 strlen(policydb->p_role_val_to_name[context->role - 1]) + 1 + in context_to_string()
260 policydb->p_role_val_to_name[context->role - in context_to_record()
Droles.c37 tmp_roles[i] = strdup(policydb->p_role_val_to_name[i]); in sepol_role_list()
Dmodule_to_cil.c684 val_to_name = pdb->p_role_val_to_name; in cil_print_attr_strs()
885 rc = ebitmap_to_names(pdb->p_role_val_to_name, rs->roles, names, num_names); in roleset_to_names()
1375 … pdb->p_role_val_to_name[rule->new_role - 1]); in role_trans_to_cil()
1707 rc = ebitmap_to_names(pdb->p_role_val_to_name, expr->names, &name_list, &num_names); in constraint_expr_to_string()
2075 cil_println(indent, "(rolebounds %s %s)", key, pdb->p_role_val_to_name[role->bounds - 1]); in role_to_cil()
2091 cil_printf("%s ", pdb->p_role_val_to_name[i]); in role_to_cil()
2205 cil_println(indent, "(userrole %s %s)", key, pdb->p_role_val_to_name[i]); in user_to_cil()
2399 pdb->p_role_val_to_name[con->role - 1], in context_to_cil()
Dusers.c37 char *role = policydb->p_role_val_to_name[bit]; in user_to_record()
Dexpand.c776 base_reg_role_id = state->base->p_role_val_to_name[i]; in role_fix_callback()
1340 state->out->p_role_val_to_name[i], in copy_role_trans()
1343 state->out->p_role_val_to_name[mapped_role - 1], in copy_role_trans()
1344 state->out->p_role_val_to_name[cur_trans->new_role - 1]); in copy_role_trans()
Dhierarchy.c566 (char *)k, a->p->p_role_val_to_name[rp->s.value - 1]); in bounds_check_role_callback()
Dservices.c256 policydb->p_role_val_to_name[i]); in get_name_list()
1596 p_role_val_to_name[c->role - 1]); in convert_context()
Dpolicydb.c881 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.c421 role = p->p_role_val_to_name[cur->context[0].role - 1]; in display_initial_sids()
430 role = p->p_role_val_to_name[cur->context[0].role - 1]; in display_initial_sids()
/external/selinux/checkpolicy/
Dmodule_compiler.c196 policydbp->p_role_val_to_name[role->bounds - 1]); in role_implicit_bounds()
400 policydbp->p_role_val_to_name[user->bounds - 1]); in user_implicit_bounds()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h517 #define p_role_val_to_name sym_val_to_name[SYM_ROLES] macro
/external/selinux/libsepol/cil/src/
Dcil_binary.c3714 pdb->p_role_val_to_name[role->s.value - 1] = (char *)key; in __cil_role_val_array_insert()
3805 policydb->p_role_val_to_name = cil_malloc(sizeof(char *) * policydb->p_roles.nprim); in __cil_policydb_val_arrays_create()