aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/busybox/files
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2020-11-27 23:45:54 +0000
committerDaniel Golle <daniel@makrotopia.org>2020-11-30 10:39:01 +0000
commitaa6fe00a4804c782b2ad4afc894ea62109bc8d91 (patch)
tree4398097da09b0a35323d8ec2ba817ec25adaf1a7 /package/utils/busybox/files
parent520403cd4978fd2e3cca389e5009ca5c0ac26db9 (diff)
downloadupstream-aa6fe00a4804c782b2ad4afc894ea62109bc8d91.tar.gz
upstream-aa6fe00a4804c782b2ad4afc894ea62109bc8d91.tar.bz2
upstream-aa6fe00a4804c782b2ad4afc894ea62109bc8d91.zip
busybox: add check for capabilities file
Similar to the previous commit adding a check to the init script of umdns, do a similar change for sysntpd, just to be on the safe side. Inspired-by: 520403cd49 ("umdns: add check for seccomp list") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/utils/busybox/files')
-rwxr-xr-xpackage/utils/busybox/files/sysntpd2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/utils/busybox/files/sysntpd b/package/utils/busybox/files/sysntpd
index db5fc6c034..19571a2306 100755
--- a/package/utils/busybox/files/sysntpd
+++ b/package/utils/busybox/files/sysntpd
@@ -55,7 +55,7 @@ start_ntpd_instance() {
procd_append_param command -p $peer
done
procd_set_param respawn
- [ -x /sbin/ujail ] && {
+ [ -x /sbin/ujail -a -e /etc/capabilities/ntpd.json ] && {
procd_add_jail ntpd
procd_set_param capabilities /etc/capabilities/ntpd.json
procd_set_param user ntp