• Home
  • Raw
  • Download

Lines Matching refs:roles

74 static int ebitmap_expand_roles(policydb_t *p, ebitmap_t *roles)  in ebitmap_expand_roles()  argument
82 ebitmap_for_each_positive_bit(roles, node, bit) { in ebitmap_expand_roles()
91 if (ebitmap_union(&tmp, &role->roles)) { in ebitmap_expand_roles()
97 ebitmap_destroy(roles); in ebitmap_expand_roles()
98 if (ebitmap_cpy(roles, &tmp)) { in ebitmap_expand_roles()
798 if (map_ebitmap(&role->roles, &mapped_roles, state->rolemap)) in role_fix_callback()
800 if (ebitmap_union(&new_role->roles, &mapped_roles)) { in role_fix_callback()
807 ebitmap_for_each_positive_bit(&role->roles, rnode, i) { in role_fix_callback()
1084 if (role_set_expand(&user->roles, &tmp_union, state->out, state->base, state->rolemap)) { in user_copy_callback()
1090 if (ebitmap_union(&new_user->roles.roles, &tmp_union)) { in user_copy_callback()
1257 ebitmap_t roles, new_roles; in copy_role_allows() local
1265 ebitmap_init(&roles); in copy_role_allows()
1268 if (role_set_expand(&cur->roles, &roles, state->out, state->base, state->rolemap)) { in copy_role_allows()
1278 ebitmap_for_each_positive_bit(&roles, snode, i) { in copy_role_allows()
1308 ebitmap_destroy(&roles); in copy_role_allows()
1322 ebitmap_t roles, types; in copy_role_trans() local
1330 ebitmap_init(&roles); in copy_role_trans()
1333 if (role_set_expand(&cur->roles, &roles, state->out, state->base, state->rolemap)) { in copy_role_trans()
1342 ebitmap_for_each_positive_bit(&roles, rnode, i) { in copy_role_trans()
1398 ebitmap_destroy(&roles); in copy_role_trans()
2431 ebitmap_t mapped_roles, roles; in role_set_expand() local
2445 ebitmap_init(&roles); in role_set_expand()
2449 ebitmap_for_each_positive_bit(&x->roles, rnode, i) { in role_set_expand()
2455 if (ebitmap_union(&roles, in role_set_expand()
2456 &role->roles)) in role_set_expand()
2459 if (ebitmap_set_bit(&roles, i, 1)) in role_set_expand()
2463 if (map_ebitmap(&roles, &mapped_roles, rolemap)) in role_set_expand()
2466 if (ebitmap_cpy(&mapped_roles, &x->roles)) in role_set_expand()
2476 ebitmap_destroy(&roles); in role_set_expand()
2494 ebitmap_destroy(&roles); in role_set_expand()