~/talk

Sandboxing a Linux Application

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

Walks through building a minimal but fragile Linux sandbox that actually runs an injected binary, demonstrating use of namespaces (user, mount, pid, net), replacing root with pivot_root rather than chroot, filtering syscalls with seccomp (libseccomp to avoid raw BPF pain), and limiting resources with cgroups v2. Shows live failures (missing /proc, killed syscalls, OOM when memory limits hit), warns the code is unsafe for production, and explains how Docker and Chromium reuse these APIs.

AI-written summary · about

  1. 0:00Start
  2. 3:54What Is a Sandbox
  3. 5:04Why Would You Sandbox
  4. 11:58Ld Preload
  5. 17:27Namespaces
  6. 18:10Permission Model
  7. 20:42Create a New Username Space
  8. 31:36Pivot Route
  9. 39:16Network Namespace
  10. 44:22Secomp
  11. 48:51Checking Architecture
  12. 53:49Checking of Arguments
  13. 56:13Architecture Check
  14. 59:53How Can I Compare Strings
  15. 1:05:47C Groups
  16. 1:12:46Memory Controller
  17. 1:15:57Disable the Memory Controller
  18. 1:17:27Cpu Burn
  19. 1:18:47Cpu Weight
  20. 1:22:04Cpu Set
~/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.