From 2d09384be792eb2b8591e7e90df8b9265eeee619 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sat, 20 Nov 2021 15:57:58 +0000 Subject: [PATCH] transmission: include default 'web_home' dir in jail Fixes 'transmission-web' for users which didn't manually configure the 'web_home' option. Assume transmission's default in case 'web_home' isn't defined and mount the directory so it can be accessed from inside the jail. Signed-off-by: Daniel Golle --- net/transmission/Makefile | 2 +- net/transmission/files/transmission.init | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net/transmission/Makefile b/net/transmission/Makefile index 7434dd4ba3..16748e7c49 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:=16 +PKG_RELEASE:=17 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 3c4c7d805d..4d1599efba 100644 --- a/net/transmission/files/transmission.init +++ b/net/transmission/files/transmission.init @@ -160,7 +160,8 @@ transmission() { procd_add_jail_mount_rw "$config_dir/blocklists" procd_add_jail_mount_rw "$config_dir/stats.json" procd_add_jail_mount_rw "$download_dir" - [ -d "$web_home" ] && procd_add_jail_mount_rw "$web_home" + web_home="${web_home:-/usr/share/transmission/web}" + [ -d "$web_home" ] && procd_add_jail_mount "$web_home" procd_close_instance } -- 2.30.2