News for hackers. Stuff that matters.
Re:Debian 11 by zibzab on Saturday August 14, 2021 @10:08AM (#28180762)
How well does system stuff work as snaps/flatpacks?

(I.e. things like LXC and multipass)

Re:Debian 11 by mrweasel on Saturday August 14, 2021 @01:43PM (#28182547)
I was testing out MicroK8s on Ubuntu, as a Snap. Regarding stability, I can't say, I didn't use it long enough. What really annoyed me is that it's confusing as hell. Files are no where near where you'd expect them to be. When things break and you need to go look for configuration files, you'll find that they are hidden deep down in /var. Snaps add a level of complexity I'm not comfortable with, while I gain very little.

I am pleasantly surprised by how cleanly Snaps uninstall though.

Re:Debian 11 by rlpb on Saturday August 14, 2021 @04:43PM (#28183788)
> Files are no where near where you'd expect them to be.

> I am pleasantly surprised by how cleanly Snaps uninstall though.

These two things are connected :)

Re:Debian 11 by goodpoint on Saturday August 14, 2021 @02:23PM (#28182854)
Pretty bad, by design. It cannot really integrate with the OS, that's why OS packages exists.
Re:Debian 11 by zibzab on Saturday August 14, 2021 @04:36PM (#28183740)
Hmm... that's not good, I really prefer LXC to docker

(mainly because of better security and that I use Ubuntu and debian images instead of alpine anyway)

Re:Debian 11 by goodpoint on Saturday August 14, 2021 @05:17PM (#28184016)
You can instead use dedicated directories, virtualenvs, chroots, firejail sandboxing, systemd nspawn containers.

(In increasing order of effort)

Re:Debian 11 by zibzab on Sunday August 15, 2021 @09:32AM (#28188647)
Only the last one gives my the same level of security. And that one is not very user friendly.
Re:Debian 11 by goodpoint on Sunday August 15, 2021 @11:05AM (#28189330)
Not at all. OS packages run scripts as root during installation, and this is why you should install software only from trusted Linux distros.

Sandboxing user applications is a completely orthogonal topic.

You can sandbox OS-installed applications or other applications. With the same tools.

Both options equally require custom configuration depending on what files and directories you want to allow or restrict access to (and syscalls and so on).

Fine grained permission are a personal choice and both firejail and nspawn make it quite easy to configure.