aboutgitcodebugslistschat
path: root/contrib/apparmor
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-08-29 19:58:46 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-08-29 22:26:05 +0200
commit4a41dc58d67e910c3a1f505a6a20988c4555e735 (patch)
tree39a3a400e0fdc3271eaa2ffbe543fd149de02191 /contrib/apparmor
parent1daf6f4615226a2cdd9523a80d70736af4a9f3c0 (diff)
downloadpasst-4a41dc58d67e910c3a1f505a6a20988c4555e735.tar
passt-4a41dc58d67e910c3a1f505a6a20988c4555e735.tar.gz
passt-4a41dc58d67e910c3a1f505a6a20988c4555e735.tar.bz2
passt-4a41dc58d67e910c3a1f505a6a20988c4555e735.tar.lz
passt-4a41dc58d67e910c3a1f505a6a20988c4555e735.tar.xz
passt-4a41dc58d67e910c3a1f505a6a20988c4555e735.tar.zst
passt-4a41dc58d67e910c3a1f505a6a20988c4555e735.zip
conf, fwd: Don't attempt to forward port 0
When using -t all, -u all or exclude-only ranges, we'll attempt to forward all non-ephemeral port numbers, including port 0. However, this won't work as intended: bind() treats a zero port not as literal port 0, but as "pick a port for me". Because of the special meaning of port 0, we mostly outright exclude it in our handling. Do the same for setting up forwards, not attempting to forward for port 0. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/apparmor')
0 files changed, 0 insertions, 0 deletions