diff options
Diffstat (limited to 'applications/luci-app-smartdns/root/usr/share/rpcd/acl.d/luci-app-smartdns.json')
-rw-r--r-- | applications/luci-app-smartdns/root/usr/share/rpcd/acl.d/luci-app-smartdns.json | 21 |
1 files changed, 21 insertions, 0 deletions
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..659d6cd410 --- /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" ] + } + } + } +} |