Open git-bruh opened 2 years ago
Where do the packages inside the sandbox come from, do the dependencies have to be built each time from scratch?
Where do the packages inside the sandbox come from, do the dependencies have to be built each time from scratch?
It's just going to bind mount all required files (or restricting access to them in case of landlock) from the host -- not rebuild anything.
Not sure of the performance implications of constructing such a sandboxed rootfs with thousands of bind mounts (can't mount directories as they'll pull in extra libs) but that's what I've come up with till now
Add an optional mechanism for sandboxed builds which only makes available the listed dependencies in the
depends
fileAdvantages
depends
file - no missingmake
dependsDisadvantages
libglvnd
formesa
used by a few packages (Obsoleted by #88)Caveats
* SUID binary vs user namespaces vs landlock vs whatever proot does vs ...Landlock POC - https://codeberg.org/kiss-community/kiss-ng/src/branch/sandbox/src/sandbox.c