adguardhome: add jail_mount_rw config option
authorAfiq Nazrie <redacted>
Sat, 7 Mar 2026 05:43:42 +0000 (12:43 +0700)
committerGeorge Sapkin <redacted>
Tue, 10 Mar 2026 18:45:41 +0000 (20:45 +0200)
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 <redacted>
net/adguardhome/Makefile
net/adguardhome/files/adguardhome.config
net/adguardhome/files/adguardhome.init

index 6c8c5538ae75f4c6c8fbd3b8da341ea01ca63a3a..62c1328ae5f07ac79d2834fcefecd1bd7ff6beb0 100644 (file)
@@ -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)?
index 6f633e5f9c04ad931c920b83c0ebd47a0f1421af..382aebd7fdd2ee8d862cbdefecc9cef9d663e41e 100644 (file)
@@ -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
index 432b3e473d87198e6a4b7d3d2ab713ffaffe9502..0dc5c7392f5cbdc784865c17a1f44b0a2c9873f9 100644 (file)
@@ -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
 }
git clone https://git.99rst.org/PROJECT