mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00

This is a bit weird and I admit I don't understand exactly how the init value is used but this seems wrong. When podman reexec itself it then gets the wrong init value and because rootless_uid() will be 0 the init() function in rootless_linux.go will not set it either because of that. Thus the first reexec has the wrong env. Now that I make use of it in c/common[1] this turns out top be a real issue and is failing all first podman commands. To reproduce make sure to kill the pause process then just run any podman command with the new c/common vendor and without this patch. [1] https://github.com/containers/common/pull/2020 Signed-off-by: Paul Holzinger <pholzing@redhat.com>