Understanding Linux user namespaces
summary
Explains practical behavior: creating a user namespace with unshare gives the first process all 41 capabilities inside the namespace while keeping it unprivileged outside via /proc/[pid]/uid_map and gid_map. Demonstrates unshare and nsenter, inspects /proc/[pid]/ns symlinks, and reads capabilities with getpcaps. Shows that a root UID inside can change the UTS hostname but cannot touch initial network devices because the initial network namespace is owned by the initial user namespace. Mentions visualizer program and real uses like Firejail, Flatpak, Snap.
AI-written summary · about
