luci-app-smartdns: remove unnecessary permissions 6022/head
authorNick Peng <pymumu@gmail.com>
Fri, 14 Oct 2022 09:57:04 +0000 (17:57 +0800)
committerNick Peng <pymumu@gmail.com>
Fri, 14 Oct 2022 10:02:12 +0000 (18:02 +0800)
Signed-off-by: Nick Peng <pymumu@gmail.com>
applications/luci-app-smartdns/root/usr/share/rpcd/acl.d/luci-app-smartdns.json

index 22cba757323caa07fc23b78e3a886ceeac9c1352..ef1e386b0de0c632f978d14d0f9552c55a1ba6e1 100644 (file)
@@ -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" ]
                }