Re:Firejail: Linux namespaces and seccomp-bpf sandbox
by staticassertion on Sunday March 27, 2022 @04:59PM
(#30824085)
Honestly, user namespaces might be scarier to me than setuid lol hopefully one day that will change.
Re:Firejail: Linux namespaces and seccomp-bpf sandbox
by gnoack on Monday March 28, 2022 @04:43AM
(#30828535)
Sorry, my English... :) I meant "Unlike namespaces", not "Other than namespaces" -- Landlock does not use namespaces.
Re:Firejail: Linux namespaces and seccomp-bpf sandbox
by staticassertion on Monday March 28, 2022 @08:06AM
(#30829585)
Yeah, I realized after that that was probably the case. I assume it uses unpriv ebpf? A bit less scary lol
Re:Firejail: Linux namespaces and seccomp-bpf sandbox
by gnoack on Wednesday March 30, 2022 @05:43PM
(#30861176)
eBPF was the initial proposal, but Landlock didn't go with it in the end. It's just using a set of regular system calls, the logic behind it is just implemented in C in the kernel as a LSM.
(In fact, I'm sending this from a landlocked web browser. :))
This also ties into the discussion thread about firejail being suid-root - Other than namespaces, Landlock is an unprivileged sandboxing mechanism and doesn't need to escalate privileges in order to drop privileges.