News for hackers. Stuff that matters.
Re:Firejail: Linux namespaces and seccomp-bpf sandbox by the8472 on Sunday March 27, 2022 @11:37AM (#30821054)
You can't spin up a veth network device without a suid executable. A better approach would be to have most of the sandboxing code run unprivileged and only call a more specialized suid helper for the networking stuff.

> Though I would love to hear if anyone has any other use cases where firejail really shines compared to the other similar tools to manage namespaces and seccomp.

It also supports sandboxing X11 and dbus. So in that sense it's more like flatpak than docker.

Re:Firejail: Linux namespaces and seccomp-bpf sandbox by throwaway82652 on Sunday March 27, 2022 @01:55PM (#30822354)
I was under the impression the X11 and dbus sandboxing was done with Xpra and xdg-dbus-proxy, which are not part of firejail.
Re:Firejail: Linux namespaces and seccomp-bpf sandbox by the8472 on Sunday March 27, 2022 @03:29PM (#30823254)
Yes, but firejail integrates them, docker does not.
Re:Firejail: Linux namespaces and seccomp-bpf sandbox by throwaway82652 on Sunday March 27, 2022 @04:22PM (#30823721)
Good point, that's very helpful to know.
Re:Firejail: Linux namespaces and seccomp-bpf sandbox by brobinson on Sunday March 27, 2022 @10:18PM (#30826375)
>You can't spin up a veth network device without a suid executable.

Doesn't this just require CAP_NET_ADMIN?

Re:Firejail: Linux namespaces and seccomp-bpf sandbox by the8472 on Monday March 28, 2022 @05:32AM (#30828806)
Yes, I should have said "without elevated privileges". That capability is still a pretty big hammer you want extracted into a helper that only does one thing.
Re:Firejail: Linux namespaces and seccomp-bpf sandbox by throwaway82652 on Monday March 28, 2022 @08:16AM (#30829649)
I hope it's possible to relax that capability in the kernel somehow, that may be a next step for someone working on sandboxing.