Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rootless: fix reexec to use /proc/self/exe
Under some circumstances podman might be executed with a different argv0 than the actual path to the podman binary. This breaks the reexec logic as it tried to exec argv0 which failed. This is visible when using podmansh as login shell which get's the special -podmansh on argv0 to signal the shell it is a login shell. To fix this we can simply use /proc/self/exe as command path which is much more robust and the argv array is still passed correctly. Fixes #22672 Signed-off-by: Paul Holzinger <[email protected]>
- Loading branch information