]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: startup: do not execute chroot() when "/"
authorWilly Tarreau <w@1wt.eu>
Wed, 20 May 2026 09:05:17 +0000 (11:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 May 2026 09:46:43 +0000 (11:46 +0200)
commit3c35e7f137092eb3be7da35e6291a60102b56bc0
tree6598bdbe27beac37b4f2ccb3caa9e02a19ed2c99
parentd142c7f421290ae4e42239746a1eecbc8fd04dbf
MINOR: startup: do not execute chroot() when "/"

We'll recommend to use "chroot /" to explicitly disable chroot, however
there might be configurations where it would cause problems to just issue
the syscall (typically some hardened containers), so let's make sure that
"chroot /" is a nop in this case.
src/haproxy.c