]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: handle perm error on bind during runtime
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 3 Oct 2023 14:11:40 +0000 (16:11 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 3 Oct 2023 14:52:02 +0000 (16:52 +0200)
commit2ac5d9a6573791a6fe4e959afc40657ff06b0aed
tree1a4a0fd606d1eda9c38542d26c0e4ad9d2fe9e38
parent3ef6df7387333dce9d00d9ce1e1ed8380ef52fe6
MINOR: quic: handle perm error on bind during runtime

Improve EACCES permission errors encounterd when using QUIC connection
socket at runtime :

* First occurence of the error on the process will generate a log
  warning. This should prevent users from using a privileged port
  without mandatory access rights.

* Socket mode will automatically fallback to listener socket for the
  receiver instance. This requires to duplicate the settings from the
  bind_conf to the receiver instance to support configurations with
  multiple addresses on the same bind line.
include/haproxy/receiver-t.h
src/proto_quic.c
src/quic_conn.c
src/quic_sock.c