From: Nick Peng Date: Fri, 14 Oct 2022 09:57:04 +0000 (+0800) Subject: luci-app-smartdns: remove unnecessary permissions X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F6022%2Fhead;p=project%2Fluci.git luci-app-smartdns: remove unnecessary permissions Signed-off-by: Nick Peng --- 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 index 22cba75732..ef1e386b0d 100644 --- 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 @@ -3,9 +3,7 @@ "description": "Grant access to LuCI app smartdns", "read": { "file": { - "/etc/smartdns/*": [ "read" ], - "/usr/sbin/smartdns": [ "exec" ], - "/etc/init.d/smartdns restart" : [ "exec" ] + "/etc/smartdns/*": [ "read" ] }, "ubus": { "service": [ "list" ] @@ -14,7 +12,8 @@ }, "write": { "file": { - "/etc/smartdns/*": [ "write" ] + "/etc/smartdns/*": [ "write" ], + "/etc/init.d/smartdns restart": [ "exec" ] }, "uci": [ "smartdns" ] }