Files
podman/libpod
Grzegorz Szczepanczyk 697fa0cc19 fix: clearer error for a privileged port on a specific IP (macOS)
With podman machine, gvproxy forwards published ports by binding them on
the host (not inside the VM) and runs unprivileged. macOS refuses to bind
a privileged port (< 1024) to a specific IP for a normal user, even though
binding all interfaces is fine, so publishing e.g. -p 127.0.0.1:80:80 used
to fail with an opaque "something went wrong with the request".

Pass the published ip:port into the gvproxy error helper and, when the body
says "permission denied" for a < 1024 port on a specific IP, return an
error that explains gvproxy binds on the host and suggests dropping the
host IP or using a port >= 1024. The raw body is kept for every other case.
Add unit tests for the helper.

Fixes: #28009

Signed-off-by: Grzegorz Szczepanczyk <g.szczepanczyk@getprintbox.com>
2026-06-19 13:25:09 +02:00
..
2026-06-11 21:56:15 +01:00
2026-04-22 14:02:25 -05:00
2025-11-11 12:32:46 +01:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-06-02 19:02:38 +08:00
2026-06-02 19:02:38 +08:00
2026-04-22 14:02:25 -05:00
2026-04-22 14:02:25 -05:00
2026-06-02 19:02:38 +08:00
2026-06-11 21:56:15 +01:00
2026-04-22 14:02:25 -05:00