Lines Matching refs:roles
763 if (map_ebitmap(&role->roles, &mapped_roles, state->rolemap)) in role_fix_callback()
765 if (ebitmap_union(&new_role->roles, &mapped_roles)) { in role_fix_callback()
772 ebitmap_for_each_positive_bit(&role->roles, rnode, i) { in role_fix_callback()
1049 if (role_set_expand(&user->roles, &tmp_union, state->out, state->base, state->rolemap)) { in user_copy_callback()
1055 if (ebitmap_union(&new_user->roles.roles, &tmp_union)) { in user_copy_callback()
1222 ebitmap_t roles, new_roles; in copy_role_allows() local
1230 ebitmap_init(&roles); in copy_role_allows()
1233 if (role_set_expand(&cur->roles, &roles, state->out, state->base, state->rolemap)) { in copy_role_allows()
1243 ebitmap_for_each_positive_bit(&roles, snode, i) { in copy_role_allows()
1273 ebitmap_destroy(&roles); in copy_role_allows()
1287 ebitmap_t roles, types; in copy_role_trans() local
1295 ebitmap_init(&roles); in copy_role_trans()
1298 if (role_set_expand(&cur->roles, &roles, state->out, state->base, state->rolemap)) { in copy_role_trans()
1307 ebitmap_for_each_positive_bit(&roles, rnode, i) { in copy_role_trans()
1363 ebitmap_destroy(&roles); in copy_role_trans()
2427 ebitmap_t mapped_roles, roles; in role_set_expand() local
2441 ebitmap_init(&roles); in role_set_expand()
2445 ebitmap_for_each_positive_bit(&x->roles, rnode, i) { in role_set_expand()
2451 if (ebitmap_union(&roles, in role_set_expand()
2452 &role->roles)) in role_set_expand()
2455 if (ebitmap_set_bit(&roles, i, 1)) in role_set_expand()
2459 if (map_ebitmap(&roles, &mapped_roles, rolemap)) in role_set_expand()
2462 if (ebitmap_cpy(&mapped_roles, &x->roles)) in role_set_expand()
2472 ebitmap_destroy(&roles); in role_set_expand()
2490 ebitmap_destroy(&roles); in role_set_expand()