by wicket · 2y ago · 0 comments
This sentence does not give me confidence. A general purpose sandbox should be implemented in the kernel. The kernel syscall interface will always remain available regardless of any sandbox that has been implemented in user space.
EDIT (to answer a few of the replies here):
The description lacks details so it's not entirely clear how Syd is intended to be used or who its target audience is. If this is intended for a security conscious user to wrap their own executables, similar to Firejail, I guess this serves a purpose but I would certainly hesitate to suggest that it is the "most sophisticated sandbox for Linux". We already have kernel-based SELinux, AppArmor, other LSMs and grsecurity which can ensure that every single executable will run in a sandbox regardless of the experience of the end-user, something a user space wrapper cannot achieve. It's not about whether or not it uses kernel facilities but about ensuring that absolutely everything will be sandboxed.
Also, as I recall some of the kernel based syscall based sandboxing have had a number of issues with dealing with some of the syscalls.
1) Seccomp, a BPF based kernel filter for syscalls
2) Bind mounts inside a filesystem namespace to control what files are visible
3) Landlock - more path restriction type stuff and permission changes to paths that are local to the application being wrapped
4) seccomp-notify (used with ptrace to inspect types of arguments to syscalls that bpf isn't allowed to access for security reasons, i.e. pointers)