~/talk

Linux Namespaces for Fun and Isolation

Talkat NDC Security 2024 · 2024-01-09..01-10· [security, linux-and-operating-systems]
links:none on file
slides:none on file

Machine examples use unshare with CLONE_NEWUSER and show writing /proc/self/uid_map and /proc/self/gid_map (and echoing "deny" to /proc/self/setgroups) so an unprivileged process can only map itself; code omits error checks. A new mount namespace is created, tempfs mounted and pivot_root over chroot swaps in a fresh root; PID namespaces require fork so the child becomes PID 1 and /proc shows only that process. IPC, cgroup remounts and a veth pair moved into a netns demonstrate isolated message queues, a private cgroup tree, and pingable virtual networking.

AI-written summary · about

  1. 0:00Linux namespaces intro
  2. 1:11What namespaces are
  3. 3:17User namespace isolation
  4. 11:16Mount namespace isolation
  5. 15:11Custom root filesystem
  6. 20:41PID namespace isolation
  7. 28:07UTS namespace isolation
  8. 30:35Time namespace tricks
  9. 35:56IPC namespace isolation
  10. 40:47Cgroup namespace isolation
  11. 47:38Network namespace isolation
  12. 56:06Security & Q&A
~/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.