diff options
author | Daniel Golle <daniel@makrotopia.org> | 2021-01-01 12:45:48 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2021-02-08 00:57:14 +0000 |
commit | 29a6a71d52738af9552bd77763f10e912a7eb9f0 (patch) | |
tree | e1ed3998e4eaecaebd4c6911dd368b3dd3756de9 /package/utils/busybox/files/sysntpd | |
parent | 3010f16f44e20127816817d708dbe8d26657c0fd (diff) | |
download | upstream-29a6a71d52738af9552bd77763f10e912a7eb9f0.tar.gz upstream-29a6a71d52738af9552bd77763f10e912a7eb9f0.tar.bz2 upstream-29a6a71d52738af9552bd77763f10e912a7eb9f0.zip |
busybox: sysntpd: make use of new ubus hotplug.ntp object
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/utils/busybox/files/sysntpd')
-rwxr-xr-x | package/utils/busybox/files/sysntpd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/package/utils/busybox/files/sysntpd b/package/utils/busybox/files/sysntpd index 19571a2306..e4a070762f 100755 --- a/package/utils/busybox/files/sysntpd +++ b/package/utils/busybox/files/sysntpd @@ -56,7 +56,12 @@ start_ntpd_instance() { done procd_set_param respawn [ -x /sbin/ujail -a -e /etc/capabilities/ntpd.json ] && { - procd_add_jail ntpd + procd_add_jail ntpd ubus + procd_add_jail_mount "$HOTPLUG_SCRIPT" + procd_add_jail_mount "/usr/share/libubox/jshn.sh" + procd_add_jail_mount "/usr/bin/env" + procd_add_jail_mount "/usr/bin/jshn" + procd_add_jail_mount "/bin/ubus" procd_set_param capabilities /etc/capabilities/ntpd.json procd_set_param user ntp procd_set_param group ntp |