From: Afiq Nazrie Date: Sat, 7 Mar 2026 05:43:42 +0000 (+0700) Subject: adguardhome: add jail_mount_rw config option X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=704319e27ba606e9a1eed8768d9b2328a291e8a8;p=openwrt-packages.git adguardhome: add jail_mount_rw config option Add jail_mount_rw config option to add directories with read-write access. Fixes: https://forum.openwrt.org/t/247253 Signed-off-by: Afiq Nazrie --- diff --git a/net/adguardhome/Makefile b/net/adguardhome/Makefile index 6c8c5538a..62c1328ae 100644 --- a/net/adguardhome/Makefile +++ b/net/adguardhome/Makefile @@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=adguardhome PKG_VERSION:=0.107.72 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/AdguardTeam/AdGuardHome/tar.gz/v$(PKG_VERSION)? diff --git a/net/adguardhome/files/adguardhome.config b/net/adguardhome/files/adguardhome.config index 6f633e5f9..382aebd7f 100644 --- a/net/adguardhome/files/adguardhome.config +++ b/net/adguardhome/files/adguardhome.config @@ -7,10 +7,14 @@ config adguardhome 'config' option user 'adguardhome' option group 'adguardhome' option verbose '0' + # Files and directories that AdGuard Home has read-only access to # list jail_mount '/etc/ssl/adguardhome.crt' # list jail_mount '/etc/ssl/adguardhome.key' + # Files and directories that AdGuard Home has read-write access to + # list jail_mount_rw '/path/to/dir' + # Advanced options. Modify at your own risk. # https://go.dev/doc/gc-guide#GOGC diff --git a/net/adguardhome/files/adguardhome.init b/net/adguardhome/files/adguardhome.init index 432b3e473..0dc5c7392 100644 --- a/net/adguardhome/files/adguardhome.init +++ b/net/adguardhome/files/adguardhome.init @@ -102,6 +102,7 @@ start_service() { procd_add_jail_mount /etc/hosts procd_add_jail_mount /etc/ssl/certs config_list_foreach config jail_mount procd_add_jail_mount + config_list_foreach config jail_mount_rw procd_add_jail_mount_rw procd_close_instance }