mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 13:05:47 +00:00
GuestWorker dup2()'d the guest's fds onto their numbers while the worker's binder threads were still running. A target that was the binder driver fd's number made the next binder ioctl fail with EACCES or ENOTTY, and libbinder aborts on that, so the worker died before its program ran. When it was the inner droiddeck-session, the session ended with status 0 two seconds after it started. Programs started through libddexec.so now get their fds placed by it after the exec (DDH_PLACE_FDS), when no other thread is left.