[openwrt/openwrt] umdns: add check for seccomp list
LEDE Commits
lede-commits at lists.infradead.org
Mon Nov 30 05:39:31 EST 2020
dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/520403cd4978fd2e3cca389e5009ca5c0ac26db9
commit 520403cd4978fd2e3cca389e5009ca5c0ac26db9
Author: Jan Pavlinec <jan.pavlinec at nic.cz>
AuthorDate: Fri Nov 27 14:49:43 2020 +0100
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 at nic.cz>
---
package/network/services/umdns/Makefile | 2 +-
package/network/services/umdns/files/umdns.init | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/network/services/umdns/Makefile b/package/network/services/umdns/Makefile
index dc032af31b..41945ce007 100644
--- a/package/network/services/umdns/Makefile
+++ b/package/network/services/umdns/Makefile
@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=umdns
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE_URL=$(PROJECT_GIT)/project/mdnsd.git
PKG_SOURCE_PROTO:=git
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
More information about the lede-commits
mailing list