]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cfgparse-tcp: relax namespace bind check
authorDamien Claisse <d.claisse@criteo.com>
Fri, 20 Dec 2024 13:36:34 +0000 (13:36 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Mar 2025 15:23:29 +0000 (16:23 +0100)
commitf0a07f834c001c5b505e84b0f0b103e530e87d1b
tree90cc5a28527293df143d3a57af9621a392abe275
parentdc7913d814b7e5cd87c996ee255cb6a84946b5e6
BUG/MINOR: cfgparse-tcp: relax namespace bind check

Commit 5cbb278 introduced cap_sys_admin support, and enforced checks for
both binds and servers. However, when binding into a namespace, the bind
is done before dropping privileges. Hence, checking that we have
cap_sys_admin capability set in this case is not needed (and it would
decrease security to add it).
For users starting haproxy with other user than root and without
cap_sys_admin, bind should have already failed.
As a consequence, relax runtime check for binds into a namespace.
src/cfgparse-tcp.c