transmission: init script check syscall list for seccomp 12321/head
authorJan Pavlinec <jan.pavlinec@nic.cz>
Mon, 25 May 2020 10:56:06 +0000 (12:56 +0200)
committerJan Pavlinec <jan.pavlinec@nic.cz>
Tue, 26 May 2020 12:16:40 +0000 (14:16 +0200)
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
net/transmission/Makefile
net/transmission/files/transmission.init

index c61fa5e4774d3335a8052845b5b52740acc95c39..4e452c6d5aedb699466fbcc18b23a424ebae6335 100644 (file)
@@ -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
index 1af3bedde228063c287667e5c8807524a65d7013..7be368200d5bd728b7ed09f48ca5a9ec8321e835 100644 (file)
@@ -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"