podman/pkg/api/handlers
Paul Holzinger bf74797c69
fix races in the HTTP attach API
This is very similar to commit 3280da0500, we cannot check the state
then unlock to then lock again and do the action. Everything must
happen under one lock. To fix this move the code into the HTTPAttach
function in libpod. The locking here is a bit weird because attach
blocks for the lifetime of attach which can be very long so we must
unlock before performing the attach.

Fixes #23757

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-08-27 15:00:08 +02:00
..
compat fix races in the HTTP attach API 2024-08-27 15:00:08 +02:00
libpod set !remote build tags where needed 2024-08-19 11:41:28 +02:00
swagger set !remote build tags where needed 2024-08-19 11:41:28 +02:00
types Bump Go module to v5 2024-02-08 09:35:39 -05:00
utils set !remote build tags where needed 2024-08-19 11:41:28 +02:00
decoder.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
types.go Fix reference to deprecated types.Info 2024-03-27 08:17:10 -05:00