]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: systemd: Add SystemD's Protect*= options to the unit file
authorTim Duesterhus <tim@bastelstu.be>
Tue, 27 Feb 2018 19:19:04 +0000 (20:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 1 Mar 2018 14:57:15 +0000 (15:57 +0100)
commit8a9659212e4d491e4195de72aee4149db6359e09
tree3417b51782cdcbe22d92ead9415374f6f06bd3b6
parent1ce8de2d93066d29e57ca2bb9cc0e0ff321f2043
MINOR: systemd: Add SystemD's Protect*= options to the unit file

While the haproxy workers usually are running chrooted the master
process is not. This patch is a pretty safe defense in depth measure
to ensure haproxy cannot touch sensitive parts of the file system.

ProtectSystem takes non-boolean arguments in newer SystemD versions,
but setting those would leave older systems such as Ubuntu Xenial
unprotected. Distro maintainers and system administrators could
adapt the ProtectSystem value to the SystemD version they ship.
contrib/systemd/haproxy.service.in