2 ms·
How?
by cpach 7mo ago
How?
- grimblee 7mo ago--userns=auto asign a different namespace for each container, so if you escape it you get a random uid far far away from root it also protects other containers from the compromise since they each have their own namespace and uid/gid range, the drawback though is that you can't mount shared volume unless you use a pod, since you would see files from outside your uid/gid range as owned by nobody and inaccessible.
- cpach 7mo agoThat might make Copy Fail harder to exploit, but I still wouldn’t bet money on CF being impossible to use in that scenario.
- grimblee 7mo agoSince in --userns=auto, root inside the container gets assigned to the first uid of the uid range assigned by podman, copyfail would succeed but you'd get uid 647831 and be able to do nothing with it