diff options
author | Daniel Golle <daniel@makrotopia.org> | 2020-10-19 21:22:30 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2020-10-25 13:01:35 +0000 |
commit | 2d34355e16b442fcf51e93786401716dae3c4ea2 (patch) | |
tree | 1fe6e9c20153a6f76d5baf7a48480c93a0537b06 /package/utils/busybox/patches | |
parent | ccb283c71cce2248eea3afd42624f626cdc3a4f2 (diff) | |
download | upstream-2d34355e16b442fcf51e93786401716dae3c4ea2.tar.gz upstream-2d34355e16b442fcf51e93786401716dae3c4ea2.tar.bz2 upstream-2d34355e16b442fcf51e93786401716dae3c4ea2.zip |
busybox: allow ntpd to run as non-root ntpd user
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/utils/busybox/patches')
-rw-r--r-- | package/utils/busybox/patches/600-allow-ntpd-non-root.patch | 12 |
1 files changed, 12 insertions, 0 deletions
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; |