diff options
author | Nick Peng <pymumu@gmail.com> | 2020-03-20 23:17:26 +0800 |
---|---|---|
committer | Nick Peng <pymumu@gmail.com> | 2020-03-20 23:17:26 +0800 |
commit | 7aad18cbac961f6ec75580c107e91d476fd4284a (patch) | |
tree | 7735e596b5ed2d0adc99d639445ce58d24f32ed7 /applications/luci-app-smartdns/root | |
parent | 7b0ae114a87b297fbf383b9c2ee31f27101259aa (diff) |
luci-app-smartdns: add new package
Signed-off-by: Nick Peng <pymumu@gmail.com>
Diffstat (limited to 'applications/luci-app-smartdns/root')
-rw-r--r-- | applications/luci-app-smartdns/root/usr/share/luci/menu.d/luci-app-smartdns.json | 12 | ||||
-rw-r--r-- | applications/luci-app-smartdns/root/usr/share/rpcd/acl.d/luci-app-smartdns.json | 21 |
2 files changed, 33 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 000000000..91b440248 --- /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 000000000..659d6cd41 --- /dev/null +++ b/applications/luci-app-smartdns/root/usr/share/rpcd/acl.d/luci-app-smartdns.json @@ -0,0 +1,21 @@ +{ + "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" ] + } + }, + "write": { + "file": { + "/etc/smartdns/*": [ "write" ] + } + } + } +} |