mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-11 08:27:36 +00:00
When spawning the pause process, environment variables were inherited from the parent process before setting _PODMAN_PAUSE=1. If the parent environment exceeded 4096 bytes, _PODMAN_PAUSE=1 was placed beyond the first 4KB chunk read by is_pause_process(), causing a valid pause process to be treated as stale and its PID file unlinked. Call clearenv() prior to setting _PODMAN_PAUSE=1 so the pause process environment only contains the required pause marker. In addition, ensure is_pause_process() explicitly bounds its read buffer with a null terminator. Fixes: #29650 Signed-off-by: K J Sundeep Kumar <sundeep8967@gmail.com> |
||
|---|---|---|
| .. | ||
| rootless.go | ||
| rootless_freebsd.c | ||
| rootless_freebsd.go | ||
| rootless_linux.c | ||
| rootless_linux.go | ||
| rootless_test.go | ||
| rootless_unsupported.go | ||