You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The directories proot-next makes for itself under a shared temporary
directory are this user's alone. The exec trampoline's and the loader
aliases' directory (proot-next-<pid>) and bwrap's per-user base
(proot-next-<uid>) have names anyone can predict, and one another local
user made first, as a directory of theirs or a link, was used as it was:
they could replace the trampoline every guest process runs, or an alias the
loader is reached through. Each is now made with mode 0700, and one of
that name already there is taken only when it is a directory itself that
this user owns and alone may write to, under a parent no one else may
rename it in. Otherwise the trampoline and bwrap go on to ~/.cache, and a
program the loader runs without an alias shows the loader's name, as it
would without the directory; bwrap takes XDG_RUNTIME_DIR only when it is
absolute and private to the user.
Changes
The program is built as a library, proot_next, which the proot
executable calls; the API reference moved to rustdoc/proot_next/.
CodSpeed benchmarks of the path translation every traced call pays
(bindings both ways, resolving through cached and uncached directories,
symlinks, .., bound paths and new files, program canonicalization, the
other architectures' syscall numbers, the proot-apps command line) run on
every change.
The test probes close what they open and bound what they print, and the
unit tests make their scratch directories with tempfile.