mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
zabbix: update to 4.0.11
Updated to 4.0.11 LTS version. Deleted 003-change-user-and-foreground.patch in according to [ZBX-10611] fixed changing process user owner on startup in foreground when AllowRoot disabled. Compile tested: Yes, lantiq Run tested: Yes, lantiq Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
--- a/src/libs/zbxnix/daemon.c
|
||||
+++ b/src/libs/zbxnix/daemon.c
|
||||
@@ -300,11 +300,14 @@ int daemon_start(int allow_root, const c
|
||||
|
||||
if (0 == allow_root && 0 == getuid()) /* running as root? */
|
||||
{
|
||||
+#if 0
|
||||
+/* allow changing user and foreground */
|
||||
if (0 != (flags & ZBX_TASK_FLAG_FOREGROUND))
|
||||
{
|
||||
zbx_error("cannot run as root!");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
+#endif
|
||||
|
||||
if (NULL == user)
|
||||
user = "zabbix";
|
||||
Reference in New Issue
Block a user