MINOR: startup: adjust alert messages, when capabilities are missed

CAP_SYS_ADMIN support was added, in order to access sockets in namespaces. So
let's adjust the alert at startup, where we check preserved capabilities from
global.last_checks. Let's mention here cap_sys_admin as well.
This commit is contained in:
Valentine Krasnobaeva 2025-03-07 13:42:27 +01:00 committed by Willy Tarreau
parent f0a07f834c
commit 7d427134fe

View File

@ -3438,8 +3438,8 @@ int main(int argc, char **argv)
#if defined(USE_LINUX_CAP)
ha_alert("[%s.main()] Alternately, if your system supports "
"Linux capabilities, you may also consider using "
"'setcap cap_net_raw' or 'setcap cap_net_admin' in the "
"'global' section.\n", argv[0]);
"'setcap cap_net_raw', 'setcap cap_net_admin' or "
"'setcap cap_sys_admin' in the 'global' section.\n", argv[0]);
#endif
protocol_unbind_all();
exit(1);