From efc18996a8ca7f7983852936d9456173a8ea11d6 Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Sat, 15 Oct 2022 10:41:48 +0800 Subject: [PATCH] luci: remove unnecessary permissions --- .../files/root/usr/share/rpcd/acl.d/luci-app-smartdns.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/package/luci/files/root/usr/share/rpcd/acl.d/luci-app-smartdns.json b/package/luci/files/root/usr/share/rpcd/acl.d/luci-app-smartdns.json index 22cba75..ef1e386 100644 --- a/package/luci/files/root/usr/share/rpcd/acl.d/luci-app-smartdns.json +++ b/package/luci/files/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" ] }