Lines Matching refs:rolemap
44 uint32_t *rolemap;
409 if (map_ebitmap(&expr->names, &new_expr->names, state->rolemap)) {
648 bounds_val = state->rolemap[role->bounds - 1];
785 if (map_ebitmap(&role->dominates, &mapped_roles, state->rolemap))
801 * invoked after role_copy_callback so that state->rolemap is available.
839 if (map_ebitmap(&role->roles, &mapped_roles, state->rolemap))
886 state->rolemap[role->s.value - 1] = 1;
918 state->rolemap[role->s.value - 1] = new_role->s.value;
1126 if (role_set_expand(&user->roles, &tmp_union, state->out, state->base, state->rolemap)) {
1310 if (role_set_expand(&cur->roles, &roles, state->out, state->base, state->rolemap)) {
1315 if (role_set_expand(&cur->new_roles, &new_roles, state->out, state->base, state->rolemap)) {
1379 if (role_set_expand(&cur->roles, &roles, state->out, state->base, state->rolemap)) {
1402 mapped_role = state->rolemap[cur->new_role - 1];
1439 n->new_role = state->rolemap
2141 dst->role = state->rolemap[src->role - 1];
2440 * Attribute expansion depends on if the rolemap is available.
2441 * During module compile the rolemap is not available, the
2446 int role_set_expand(role_set_t * x, ebitmap_t * r, policydb_t * out, policydb_t * base, uint32_t * rolemap)
2466 if (rolemap) {
2484 if (map_ebitmap(&roles, &mapped_roles, rolemap))
2818 uint32_t * boolmap, uint32_t * rolemap,
2830 state.rolemap = rolemap;
3004 state.rolemap = (uint32_t *)calloc(state.base->p_roles.nprim, sizeof(uint32_t));
3005 if (!state.rolemap) {
3190 free(state.rolemap);