From a6bffd306ffdc337d2c915df982b09ffb4e46255 Mon Sep 17 00:00:00 2001 From: Jan Pavlinec Date: Mon, 25 May 2020 12:56:06 +0200 Subject: [PATCH] transmission: init script check syscall list for seccomp Signed-off-by: Jan Pavlinec --- net/transmission/Makefile | 2 +- net/transmission/files/transmission.init | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/net/transmission/Makefile b/net/transmission/Makefile index c61fa5e47..4e452c6d5 100644 --- a/net/transmission/Makefile +++ b/net/transmission/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=transmission PKG_VERSION:=3.00 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@GITHUB/transmission/transmission-releases/master diff --git a/net/transmission/files/transmission.init b/net/transmission/files/transmission.init index 1af3bedde..7be368200 100644 --- a/net/transmission/files/transmission.init +++ b/net/transmission/files/transmission.init @@ -63,6 +63,7 @@ transmission() { config_get nice "$cfg" nice 0 local web_home config_get web_home "$cfg" 'web_home' + local seccomp_path local MEM MEM=$(sed -ne 's!^MemTotal:[[:space:]]*\([0-9]*\) kB$!\1!p' /proc/meminfo) @@ -133,7 +134,11 @@ transmission() { procd_set_param nice "$nice" procd_set_param stderr 1 procd_set_param respawn - procd_set_param seccomp "/etc/seccomp/transmission-daemon.json" + + seccomp_path="/etc/seccomp/transmission-daemon.json" + if [ -f "$seccomp_path" ]; then + procd_set_param seccomp "$seccomp_path" + fi if [ -z "$USE" ]; then procd_set_param limits core="0 0"