]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: startup: only worker gets capabilities from bin
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Thu, 4 Jul 2024 15:19:18 +0000 (17:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commitcb0f1f42e134bb64bda3a6032654158e7160d5a1
tree47b2e085e714dfa3202ef12095494bedd8bbf0f4
parentfe04c2ad37d0b34323f7e8afaa39543f173c713b
MINOR: startup: only worker gets capabilities from bin

Due to moving the master-worker fork in init(), we need to protect
prepare_caps_from_permitted_set() call, which is executed after init(). This
call makes sense only for worker, daemon and for foreground mono process modes.

prepare_caps_from_permitted_set() allows to read Linux capabilities from
haproxy binary and to move some of them in process Effective set, if 'setcap'
keyword lists needed capabilities in the global section.
src/haproxy.c