Browse Source

transmission: init script check syscall list for seccomp

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
lilik-openwrt-22.03
Jan Pavlinec 4 years ago
parent
commit
a6bffd306f
No known key found for this signature in database GPG Key ID: 60244CCEFB39E584
2 changed files with 7 additions and 2 deletions
  1. +1
    -1
      net/transmission/Makefile
  2. +6
    -1
      net/transmission/files/transmission.init

+ 1
- 1
net/transmission/Makefile View 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


+ 6
- 1
net/transmission/files/transmission.init View 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"


Loading…
Cancel
Save