mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 13:33:12 -05:00
* perf(nativeguest): resolve mount sources once per session instead of in every process Each new process walked every mount source of the session through realpath() before main(), one readlinkat per path component (about 960 calls for a desktop session), which made a process start about three times slower than with no mounts. The sources are now looked up through the kernel (one open and one readlink each), a source named twice is looked up once, and the resolved table is handed to child processes in DDNATV_BINDS_KERNEL, keyed by a hash of DDNATV_BINDS so a changed mount list is resolved afresh. Sources under /proc are never handed down, since they name the process itself. * fix(nativeguest): hand the bind table to children on its own and keep unsafe sources out of it A child given the bind specification without its table now gets the table too. Sources reached through /proc with extra leading slashes, and real places that hold the table's separator, are left for each child to look up. * test(nativeguest): skip the child exec check where the host cannot start the probe * fix(nativeguest): keep a bind table too long for the environment out of it * fix(nativeguest): resolve libc path helpers before any fork can race them