mirror of
https://github.com/containers/podman.git
synced 2025-08-23 17:22:30 +08:00

pasta doesn't switch to nobody when we already run in a userns so we can use it there. The unshare package checks the same condition and returns true even if uid 0 in this case so we can directly call this. ref https://github.com/containers/podman/issues/17840#issuecomment-2343251014 Signed-off-by: Paul Holzinger <pholzing@redhat.com>