Interview Prep/Linux/Kernel Parameters, Namespaces & cgroups

What does the user namespace enable?

AdvancedConceptKernel Parameters, Namespaces & cgroups
Answer

A user namespace maps UIDs inside to different UIDs outside (/proc/<pid>/uid_map). A process can be UID 0 with full capabilities inside its namespace while being an unprivileged UID like 100000 on the host. This powers rootless Podman/Docker, and Kubernetes user namespaces for pods (hostUsers: false). If such a "root" escapes, it has no privileges on the host. /etc/subuid and /etc/subgid define the ranges a user may map.

All Linux questions Roadmap: Linux

More on Kernel Parameters, Namespaces & cgroups