From 2d34355e16b442fcf51e93786401716dae3c4ea2 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 19 Oct 2020 21:22:30 +0100 Subject: busybox: allow ntpd to run as non-root ntpd user Signed-off-by: Daniel Golle --- package/utils/busybox/patches/600-allow-ntpd-non-root.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/utils/busybox/patches/600-allow-ntpd-non-root.patch (limited to 'package/utils/busybox/patches') diff --git a/package/utils/busybox/patches/600-allow-ntpd-non-root.patch b/package/utils/busybox/patches/600-allow-ntpd-non-root.patch new file mode 100644 index 0000000000..b5d4c2a07d --- /dev/null +++ b/package/utils/busybox/patches/600-allow-ntpd-non-root.patch @@ -0,0 +1,12 @@ +--- a/networking/ntpd.c ++++ b/networking/ntpd.c +@@ -2414,9 +2414,6 @@ static NOINLINE void ntp_init(char **arg + + srand(getpid()); + +- if (getuid()) +- bb_error_msg_and_die(bb_msg_you_must_be_root); +- + /* Set some globals */ + G.discipline_jitter = G_precision_sec; + G.stratum = MAXSTRAT; -- cgit v1.2.3