~/talk

Sandboxing a Linux Application

Talkat NDC Security 2022 · 2022-04-06..04-07· [security, linux-and-operating-systems]
links:none on file
slides:none on file

Shows exactly how to build a Linux sandbox: create a new user namespace to become “root-ish,” make a private mount namespace and pivot_root into a tmpfs-based root, fork into a new PID namespace so the child is PID 1, and drop the network with a new net namespace so the process sees no interfaces. Demonstrates an ld_preload override of __libc_start_main to inject setup, uses seccomp and libseccomp for syscall whitelists (with logging/audit during development), and reminds to drop unneeded capabilities and test filters across glibc versions.

AI-written summary · about

  1. 0:00Intro
  2. 0:29Who am I
  3. 1:04Disclaimer
  4. 1:51What is a Sandbox
  5. 2:56Why use a Sandbox
  6. 3:48Application expectations
  7. 5:29Setting up a sandbox
  8. 7:03Example application
  9. 9:13namespaces
  10. 10:09usernamespace
  11. 11:02mappings
  12. 12:31running as root
  13. 15:01making a new file system
  14. 16:35making a new mount point
  15. 17:27making a temporary file system
  16. 19:27proc file system
  17. 20:39new proc namespace
  18. 21:59pid namespace
  19. 23:39Create new namespace
  20. 28:39Clone newnet
  21. 29:16Build the application
  22. 30:50Protect the system
  23. 31:16Seccomp
  24. 33:56Seccomp Program
  25. 41:55libsec comp
  26. 44:32argument checks
  27. 47:37compare strings
~/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.