Searched refs:p_role_val_to_name (Results 1 – 15 of 15) sorted by relevance
/third_party/selinux/libsepol/src/ |
D | context.c | 101 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()
|
D | kernel_to_cil.c | 189 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()
|
D | kernel_to_conf.c | 186 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()
|
D | module_to_cil.c | 840 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()
|
D | users.c | 41 char *role = policydb->p_role_val_to_name[bit]; in user_to_record()
|
D | expand.c | 810 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()
|
D | hierarchy.c | 526 (char *)k, a->p->p_role_val_to_name[rp->s.value - 1]); in bounds_check_role_callback()
|
D | services.c | 254 policydb->p_role_val_to_name[i]); in get_name_list() 1643 p_role_val_to_name[c->role - 1]); in convert_context()
|
D | policydb_validate.c | 55 if (validate_init(&flavors[SYM_ROLES], p->p_role_val_to_name, p->p_roles.nprim)) in validate_array_init()
|
D | policydb.c | 1045 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/ |
D | test-expander-users.c | 52 if (strcmp(role_names[j], p->p_role_val_to_name[i]) == 0) { in check_user_roles()
|
/third_party/selinux/checkpolicy/test/ |
D | dismod.c | 445 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/ |
D | module_compiler.c | 245 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/ |
D | policydb.h | 538 #define p_role_val_to_name sym_val_to_name[SYM_ROLES] macro
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 4136 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()
|