kiss-community / repo

KISS Linux - Unofficial Repositories, mirror of https://codeberg.org/kiss-community/repo
https://kisslinux.org
MIT License
41 stars 17 forks source link

proposal: sandboxed builds #108

Open git-bruh opened 2 years ago

git-bruh commented 2 years ago

Add an optional mechanism for sandboxed builds which only makes available the listed dependencies in the depends file

Advantages

Disadvantages

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

sdsddsd1 commented 2 years ago

Where do the packages inside the sandbox come from, do the dependencies have to be built each time from scratch?

git-bruh commented 2 years ago

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

git-bruh commented 2 years ago

https://codeberg.org/kiss-community/repo/issues/108