I called and they said first come, first served. They open the gates at 7:30 and start issuing same-day permits at 8am, Whitney Portal exit has a quota of 10 and they go fast. You can put yourself on a list to wait in line for the next-day permits, which are issued at 11am.