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 <afnazrie@gmail.com>
This commit is contained in:
Afiq Nazrie
2026-03-07 12:43:42 +07:00
committed by George Sapkin
parent 98a02be97b
commit 704319e27b
3 changed files with 6 additions and 1 deletions
+1 -1
View 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)?
+4
View 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
+1
View 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
}