add_to_mask
add_to_mask(state, &state->users->aces[i].perms);
add_to_mask(state, &state->group);
add_to_mask(state, &state->groups->aces[i].perms);