podman/utils
Giuseppe Scrivano 960831f9c8
runtime: change PID existence check
commit 6b3b0a17c6 introduced a check for
the PID file before attempting to move the PID to a new scope.

This is still vulnerable to TOCTOU race condition though, since the
PID file or the PID can be removed/killed after the check was
successful but before it was used.

Closes: https://github.com/containers/podman/issues/12065

[NO NEW TESTS NEEDED] it fixes a CI flake

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2021-10-28 11:18:48 +02:00
..
ports.go Improvements for machine 2021-03-25 11:02:33 -05:00
utils.go runtime: change PID existence check 2021-10-28 11:18:48 +02:00
utils_supported.go utils: return error message from StartTransientUnit 2021-09-20 09:42:35 +02:00
utils_windows.go podman: add new cgroup mode split 2020-06-25 17:16:12 +02:00