mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 13:05:47 +00:00
- New safe_fs: every step below the install folder is opened relative to its parent's descriptor with O_NOFOLLOW (openat, mkdirat, renameat, unlinkat, symlinkat). The depot writer, resume verification, adoption of a client's staged files and shared-depot removal use it, so a symlink already there or swapped in mid-operation makes the step fail instead of reaching outside. A symlink inside the folder is no longer followed either. - An install holds the shared depots it relies on from planning until it returns, past the manifest write that lists them; an uninstall meanwhile keeps a held depot instead of removing it. Only unit-tested; not yet validated on a device.