diff options
author | Jan Pavlinec <jan.pavlinec@nic.cz> | 2020-11-27 14:49:43 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2020-11-30 10:38:13 +0000 |
commit | 520403cd4978fd2e3cca389e5009ca5c0ac26db9 (patch) | |
tree | d46b5cac7cab43779624b4a28199c80c83f662ee /package/network/services/umdns/files/umdns.init | |
parent | f64496f30f2ef97124dc4e13a48ee0de9d51832e (diff) | |
download | upstream-520403cd4978fd2e3cca389e5009ca5c0ac26db9.tar.gz upstream-520403cd4978fd2e3cca389e5009ca5c0ac26db9.tar.bz2 upstream-520403cd4978fd2e3cca389e5009ca5c0ac26db9.zip |
umdns: add check for seccomp list
This should fix an issue when user have a router with enabled seccomp
and tries to run umdns package which was build with SDK with disabled
seccomp support.
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
Diffstat (limited to 'package/network/services/umdns/files/umdns.init')
-rw-r--r-- | package/network/services/umdns/files/umdns.init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/services/umdns/files/umdns.init b/package/network/services/umdns/files/umdns.init index c0b8cedd79..1ae1cccb03 100644 --- a/package/network/services/umdns/files/umdns.init +++ b/package/network/services/umdns/files/umdns.init @@ -33,7 +33,7 @@ start_service() { procd_open_instance procd_set_param command "$PROG" - procd_set_param seccomp /etc/seccomp/umdns.json + [ -f /etc/seccomp/umdns.json ] && procd_set_param seccomp /etc/seccomp/umdns.json procd_set_param respawn procd_open_trigger procd_add_config_trigger "config.change" "umdns" /etc/init.d/umdns reload |