summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-smartdns/root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-smartdns/root/usr')
-rw-r--r--applications/luci-app-smartdns/root/usr/share/luci/menu.d/luci-app-smartdns.json12
-rw-r--r--applications/luci-app-smartdns/root/usr/share/rpcd/acl.d/luci-app-smartdns.json23
2 files changed, 35 insertions, 0 deletions
diff --git a/applications/luci-app-smartdns/root/usr/share/luci/menu.d/luci-app-smartdns.json b/applications/luci-app-smartdns/root/usr/share/luci/menu.d/luci-app-smartdns.json
new file mode 100644
index 0000000000..91b4402484
--- /dev/null
+++ b/applications/luci-app-smartdns/root/usr/share/luci/menu.d/luci-app-smartdns.json
@@ -0,0 +1,12 @@
+{
+ "admin/services/smartdns": {
+ "title": "SmartDNS",
+ "action": {
+ "type": "view",
+ "path": "smartdns/smartdns"
+ },
+ "depends": {
+ "uci": { "smartdns": true }
+ }
+ }
+}
diff --git a/applications/luci-app-smartdns/root/usr/share/rpcd/acl.d/luci-app-smartdns.json b/applications/luci-app-smartdns/root/usr/share/rpcd/acl.d/luci-app-smartdns.json
new file mode 100644
index 0000000000..78fbb1c509
--- /dev/null
+++ b/applications/luci-app-smartdns/root/usr/share/rpcd/acl.d/luci-app-smartdns.json
@@ -0,0 +1,23 @@
+{
+ "luci-app-smartdns": {
+ "description": "Grant access to LuCI app smartdns",
+ "read": {
+ "file": {
+ "/etc/smartdns/*": [ "read" ],
+ "/usr/sbin/iptables -t nat -nL PREROUTING": [ "exec" ],
+ "/usr/sbin/ip6tables -t nat -nL PREROUTING": [ "exec" ],
+ "/usr/sbin/smartdns": [ "exec" ]
+ },
+ "ubus": {
+ "service": [ "list" ]
+ },
+ "uci": [ "smartdns" ]
+ },
+ "write": {
+ "file": {
+ "/etc/smartdns/*": [ "write" ]
+ },
+ "uci": [ "smartdns" ]
+ }
+ }
+}