~/talk

Understanding root inside and outside a container

Talkat DevConf.CZ 2021 · 2021-02-18..02-20· [security, linux-and-operating-systems]
links:none on file
slides:none on file

Concrete demos show running containers as root or a regular user changes three different things: the engine user, the in-container process UID, and the host UID mapping in /proc. Live examples use podman vs docker to show daemonless rootless runs, use /proc and passwd to illustrate real/effective/saved UIDs, and demonstrate that user namespaces map to subuid/subgid while --privileged disables SELinux and seccomp. Roadmap items: CRI-O runtime class for usernamepaces, NFS xattrs to carry high UIDs, and freeIPA to sync subuid maps.

AI-written summary · about

  1. 0:00Intro
  2. 1:36Demos
  3. 5:18What is root
  4. 8:30Real ID
  5. 14:14Container constraints
  6. 20:36Dash privilege
  7. 21:30Kernel
  8. 22:32Demo
  9. 22:44Mount root
  10. 23:29Constraints
  11. 25:08User privilege
  12. 28:12Root as a regular user
  13. 30:38NFS and containers
  14. 33:21Freeipa
  15. 34:58Docker
~/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.