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.
More on Kernel Parameters, Namespaces & cgroups
What is sysctl and how do you make a change persistent?BeginnerWhy does Kubernetes require `net.ipv4.ip_forward=1` and `br_netfilter`?AdvancedAre sysctl settings global, or per namespace?AdvancedWhat are Linux namespaces? List all types.BeginnerHow do you create and enter namespaces by hand?AdvancedHow does a network namespace get connectivity?Advanced