~/talk

Let's Build And Break A Container By Hand Without Docker Or LXC

Talkat sec4dev 2021 · 2021-02-22..02-25· [linux-and-operating-systems, security]
links:none on file
slides:none on file

Builds an Alpine+nginx container by hand and shows which kernel features actually isolate processes: creates a new root with unshare/pivot_root and overlayed image layers, restricts block access with a cgroups device whitelist (blocks /dev/sda1 successfully), drops privileges with POSIX capabilities and setcap/ambient bits, and isolates networking with a veth+bridge network namespace. Demonstrates real breakouts — mounting the host disk and traversing /proc file descriptors and a malicious setuid binary — and notes user namespaces are omitted so root-in-container still maps to host root.

AI-written summary · about

  1. 0:00Intro
  2. 1:00What do we need
  3. 4:37Mount Namespace
  4. 7:26Docker File System
  5. 9:08Device Access
  6. 10:28Control Groups
  7. 14:23User Permissions
  8. 17:24Capabilities
  9. 19:00Effective Set
  10. 21:15Network Namespace
  11. 25:25Username Space
  12. 27:32Container Engines
  13. 28:36Recap
~/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.