Home
last modified time | relevance | path

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

/third_party/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()
Dkernel_to_cil.c189 names = ebitmap_to_str(&curr->names, pdb->p_role_val_to_name, 1); in constraint_expr_to_str()
1288 rc = strs_add(strs, pdb->p_role_val_to_name[i]); in write_role_attributes_to_cil()
2211 rc = strs_add(strs, pdb->p_role_val_to_name[i]); in write_role_decl_rules_to_cil()
2242 parent = pdb->p_role_val_to_name[role->bounds - 1]; in write_role_decl_rules_to_cil()
2331 role = pdb->p_role_val_to_name[curr->role - 1]; in write_role_transition_rules_to_cil()
2334 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_transition_rules_to_cil()
2372 role = pdb->p_role_val_to_name[curr->role - 1]; in write_role_allow_rules_to_cil()
2373 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_allow_rules_to_cil()
2449 rc = ebitmap_to_strs(roles, role_strs, pdb->p_role_val_to_name); in write_user_decl_rules_to_cil()
2544 role = pdb->p_role_val_to_name[con->role - 1]; in context_to_str()
Dkernel_to_conf.c186 names = ebitmap_to_str(&curr->names, pdb->p_role_val_to_name, 1); in constraint_expr_to_str()
1271 rc = strs_add(strs, pdb->p_role_val_to_name[i]); in write_role_attributes_to_conf()
2184 rc = strs_add(strs, pdb->p_role_val_to_name[i]); in write_role_decl_rules_to_conf()
2262 role = pdb->p_role_val_to_name[curr->role - 1]; in write_role_transition_rules_to_conf()
2265 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_transition_rules_to_conf()
2303 role = pdb->p_role_val_to_name[curr->role - 1]; in write_role_allow_rules_to_conf()
2304 new = pdb->p_role_val_to_name[curr->new_role - 1]; in write_role_allow_rules_to_conf()
2367 pdb->p_role_val_to_name, 1); in write_user_decl_rules_to_conf()
2417 role = pdb->p_role_val_to_name[con->role - 1]; in context_to_str()
Dmodule_to_cil.c840 val_to_name = pdb->p_role_val_to_name; in cil_print_attr_strs()
1046 rc = ebitmap_to_names(&rs->roles, pdb->p_role_val_to_name, names, num_names); in process_roleset()
1463 pdb->p_role_val_to_name[rule->new_role - 1]); in role_trans_to_cil()
1797 rc = ebitmap_to_names(&expr->names, pdb->p_role_val_to_name, &name_list, &num_names); in constraint_expr_to_string()
2187 cil_println(indent, "(rolebounds %s %s)", key, pdb->p_role_val_to_name[role->bounds - 1]); in role_to_cil()
2200 cil_printf("%s ", pdb->p_role_val_to_name[i]); in role_to_cil()
2329 cil_println(indent, "(userrole %s %s)", key, pdb->p_role_val_to_name[i]); in user_to_cil()
2514 pdb->p_role_val_to_name[con->role - 1], in context_to_cil()
Dusers.c41 char *role = policydb->p_role_val_to_name[bit]; in user_to_record()
Dexpand.c810 base_reg_role_id = state->base->p_role_val_to_name[i]; in role_fix_callback()
1366 state->out->p_role_val_to_name[i], in copy_role_trans()
1369 state->out->p_role_val_to_name[mapped_role - 1], in copy_role_trans()
1370 state->out->p_role_val_to_name[cur_trans->new_role - 1]); in copy_role_trans()
Dhierarchy.c526 (char *)k, a->p->p_role_val_to_name[rp->s.value - 1]); in bounds_check_role_callback()
Dservices.c254 policydb->p_role_val_to_name[i]); in get_name_list()
1643 p_role_val_to_name[c->role - 1]); in convert_context()
Dpolicydb_validate.c55 if (validate_init(&flavors[SYM_ROLES], p->p_role_val_to_name, p->p_roles.nprim)) in validate_array_init()
Dpolicydb.c1045 if (p->p_role_val_to_name[role->s.value - 1] != NULL) in role_index()
1047 p->p_role_val_to_name[role->s.value - 1] = (char *)key; in role_index()
/third_party/selinux/libsepol/tests/
Dtest-expander-users.c52 if (strcmp(role_names[j], p->p_role_val_to_name[i]) == 0) { in check_user_roles()
/third_party/selinux/checkpolicy/test/
Ddismod.c445 role = p->p_role_val_to_name[cur->context[0].role - 1]; in display_initial_sids()
454 role = p->p_role_val_to_name[cur->context[0].role - 1]; in display_initial_sids()
/third_party/selinux/checkpolicy/
Dmodule_compiler.c245 policydbp->p_role_val_to_name[role->bounds - 1]); in role_implicit_bounds()
490 policydbp->p_role_val_to_name[user->bounds - 1]); in user_implicit_bounds()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h538 #define p_role_val_to_name sym_val_to_name[SYM_ROLES] macro
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c4136 pdb->p_role_val_to_name[role->s.value - 1] = (char *)key; in __cil_role_val_array_insert()
4227 policydb->p_role_val_to_name = cil_malloc(sizeof(char *) * policydb->p_roles.nprim); in __cil_policydb_val_arrays_create()