4 ms·
How does this compare to firejail?
by woahhvicky 9y ago
How does this compare to firejail?
- moosingin3space 9y agoThis tool is lighter-weight than firejail. nsjail seems to be a thin abstraction over Linux namespaces, while firejail contains profiles for common desktop applications and some X hackery to enable jailing of GUI programs.
- jagger11 9y agoauthor here: Yup, nsjail doesn't have X hacks (I should work on that), though it offers some profiles for Apache-like type of applications: https://github.com/google/nsjail/tree/master/configs https://github.com/google/nsjail/tree/master/configs I believe nsjail uses one of the most advanced (if not the most advanced) seccomp-bpf config language - kafel: https://github.com/google/kafel https://github.com/google/kafel
- audidude 9y agobwrap allows passing a FD containing the seccomp rules (--seccomp FD w/ seccomp_export_bpf). If it can export the compiled eBPF it should be trivial to use kafel profiles w/ bubblewrap/atomic/flatpak/etc.