mirror of https://github.com/containers/podman.git
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 <pholzing@redhat.com> |
||
|---|---|---|
| .. | ||
| rootless.go | ||
| rootless_freebsd.c | ||
| rootless_freebsd.go | ||
| rootless_linux.c | ||
| rootless_linux.go | ||
| rootless_test.go | ||
| rootless_unsupported.go | ||