luci-app-smartdns: fix uci control ACL

This commit is contained in:
CN_SZTL 2020-04-13 01:57:01 +08:00
parent f9796bcec0
commit 620988a973
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,7 @@ LUCI_DEPENDS:=+smartdns
LUCI_PKGARCH:=all
PKG_NAME:=luci-app-smartdns
PKG_VERSION:=2
PKG_RELEASE:=1
PKG_RELEASE:=2
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -3,6 +3,7 @@
"description": "Grant access to LuCI app smartdns",
"read": {
"file": {
"uci": [ "smartdns" ],
"/etc/smartdns/*": [ "read" ],
"/usr/sbin/iptables": [ "exec" ],
"/usr/sbin/ip6tables": [ "exec" ],
@ -14,8 +15,9 @@
},
"write": {
"file": {
"uci": [ "smartdns" ],
"/etc/smartdns/*": [ "write" ]
}
}
}
}
}