Understanding user namespaces
summary
Explains how user namespaces let a process be UID 0 inside a namespace while mapping to an unprivileged UID outside, shows actual commands (unshare and nsenter), inspects /proc/*/ns symlinks and /proc/[pid]/uid_map and gid_map, and demonstrates changing a hostname inside a new UTS namespace while being unable to bind privileged network ports because the network namespace is owned by the initial user namespace. Shows capability bitmasks (all bits set inside the namespace), describes root-mapping examples and past kernel corner‑case fixes and remaining security tradeoffs.
AI-written summary · about
chapters (4)
related talks
54mContainers unplugged: understanding user namespaces
54mContainers unplugged: Linux namespaces
01h 03mLinux Namespaces for Fun and Isolation
47mLinux user namespaces: a blessing and a curse
42mWhat's New in the User Namespace
32mLinux user namespaces: a blessing and a curse
39mLinux User Namespaces: A Blessing and a Curse
30mUser namespaces with host-isolated UIDs/GIDs
