mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
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:
parent
f0a07f834c
commit
7d427134fe
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user