From 704319e27ba606e9a1eed8768d9b2328a291e8a8 Mon Sep 17 00:00:00 2001 From: Afiq Nazrie Date: Sat, 7 Mar 2026 12:43:42 +0700 Subject: [PATCH] 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 --- net/adguardhome/Makefile | 2 +- net/adguardhome/files/adguardhome.config | 4 ++++ net/adguardhome/files/adguardhome.init | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/net/adguardhome/Makefile b/net/adguardhome/Makefile index 6c8c5538ae..62c1328ae5 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 6f633e5f9c..382aebd7fd 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 432b3e473d..0dc5c7392f 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 }