Lines Matching refs:rolemap
45 uint32_t *rolemap;
334 if (map_ebitmap(&expr->names, &new_expr->names, state->rolemap)) {
573 bounds_val = state->rolemap[role->bounds - 1];
710 if (map_ebitmap(&role->dominates, &mapped_roles, state->rolemap))
726 * invoked after role_copy_callback so that state->rolemap is available.
764 if (map_ebitmap(&role->roles, &mapped_roles, state->rolemap))
811 state->rolemap[role->s.value - 1] = 1;
843 state->rolemap[role->s.value - 1] = new_role->s.value;
1052 if (role_set_expand(&user->roles, &tmp_union, state->out, state->base, state->rolemap)) {
1236 if (role_set_expand(&cur->roles, &roles, state->out, state->base, state->rolemap)) {
1241 if (role_set_expand(&cur->new_roles, &new_roles, state->out, state->base, state->rolemap)) {
1305 if (role_set_expand(&cur->roles, &roles, state->out, state->base, state->rolemap)) {
1328 mapped_role = state->rolemap[cur->new_role - 1];
1365 n->new_role = state->rolemap
2107 dst->role = state->rolemap[src->role - 1];
2422 * Attribute expansion depends on if the rolemap is available.
2423 * During module compile the rolemap is not available, the
2428 int role_set_expand(role_set_t * x, ebitmap_t * r, policydb_t * out, policydb_t * base, uint32_t * rolemap)
2448 if (rolemap) {
2466 if (map_ebitmap(&roles, &mapped_roles, rolemap))
2826 uint32_t * boolmap, uint32_t * rolemap,
2838 state.rolemap = rolemap;
3012 state.rolemap = (uint32_t *)calloc(state.base->p_roles.nprim, sizeof(uint32_t));
3013 if (!state.rolemap) {
3198 free(state.rolemap);