Libturnstile: Unprivileged Interactive Sandboxing From Seccomp-unotify...
summary
A userspace library called libturnstile combines seccomp‑unotify, bind mounts and unprivileged user namespaces to implement an interactive sandbox that actually runs a cargo build in the demo and works, using seccomp notify to intercept syscalls and bind mounts to enforce filesystem views. Each intercepted syscall adds about 7 μs roundtrip and typical workloads see about 12% overhead. Kernel gaps remain (IO_URING is unsupported), and proposed kernel changes — Landlock supervise with mutable domains and supervisor notification (quiet flag already merged in v7.2) — aim to make this faster and more robust.
AI-written summary · about
chapters (12)
- 0:00Introduction and motivation
- 4:35Interactive sandboxing concept
- 6:20Existing sandboxing solutions
- 8:52Live demo of libturnstile
- 13:46Libturnstile architecture
- 15:50Dynamic mount challenges
- 22:30Performance and limitations
- 24:17Landlock supervised proposal
- 34:07Mutable domains implementation
- 37:19Lessons from libturnstile
- 40:10Project links and future
- 41:12Q&A session
