~/talk

Linux user namespaces: a blessing and a curse

Talkat NDC TechTown 2024 · 2024-09-09..09-12· [linux-and-operating-systems, security]
slides:none on file

Unprivileged user namespaces let an ordinary UID map to root inside a namespace and then create mount, pid and network namespaces to run rootless containers and sandboxes (examples: Chrome sandbox, rootless containers, systemd-coredump). That same capability turned old kernel bugs (TC bug from 2019 reproduced in 2022) into remote crash/exploit paths. A practical fix is per-process policy enforcement via BPF LSM hooks (Linux 6.1 user_ns_create), loading BPF programs to allow or deny unprivileged user namespaces for specific binaries; the allowlist approach runs in production.

AI-written summary · about

  1. 0:00Linux user namespaces intro
  2. 1:08Containers and namespaces overview
  3. 3:55Mount namespaces explained
  4. 10:23Network namespaces demo
  5. 15:44PID namespaces deep dive
  6. 19:21User namespaces privilege mapping
  7. 21:54Unprivileged user namespaces
  8. 23:20Why unprivileged namespaces matter
  9. 26:10Sandboxing with user namespaces
  10. 29:41Security concerns and bugs
  11. 33:40Kernel vulnerabilities
  12. 37:34Balancing security and usability
  13. 41:48BPF LSM control
  14. 44:39Summary and best practices
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.