Lines Matching refs:new_role
731 role_datum_t *role, *new_role, *regular_role; in role_fix_callback() local
757 new_role = in role_fix_callback()
760 assert(new_role != NULL && new_role->flavor == ROLE_ATTRIB); in role_fix_callback()
765 if (ebitmap_union(&new_role->roles, &mapped_roles)) { in role_fix_callback()
783 &new_role->types.types)) { in role_fix_callback()
798 role_datum_t *new_role; in role_copy_callback() local
820 new_role = in role_copy_callback()
822 if (!new_role) { in role_copy_callback()
823 new_role = (role_datum_t *) malloc(sizeof(role_datum_t)); in role_copy_callback()
824 if (!new_role) { in role_copy_callback()
828 memset(new_role, 0, sizeof(role_datum_t)); in role_copy_callback()
833 free(new_role); in role_copy_callback()
838 new_role->flavor = role->flavor; in role_copy_callback()
839 new_role->s.value = state->out->p_roles.nprim; in role_copy_callback()
840 state->rolemap[role->s.value - 1] = new_role->s.value; in role_copy_callback()
843 (hashtab_datum_t) new_role); in role_copy_callback()
847 free(new_role); in role_copy_callback()
856 if (ebitmap_union(&new_role->dominates, &role->dominates)) { in role_copy_callback()
871 if (ebitmap_union(&new_role->types.types, &tmp_union_types)) { in role_copy_callback()
1249 (cur_allow->new_role == j + 1)) in copy_role_allows()
1263 n->new_role = j + 1; in copy_role_allows()
1314 mapped_role = state->rolemap[cur->new_role - 1]; in copy_role_trans()
1322 if (cur_trans->new_role == mapped_role) { in copy_role_trans()
1331 state->out->p_role_val_to_name[cur_trans->new_role - 1]); in copy_role_trans()
1351 n->new_role = state->rolemap in copy_role_trans()
1352 [cur->new_role - 1]; in copy_role_trans()