luci: remove unnecessary permissions

This commit is contained in:
Nick Peng
2022-10-15 10:41:48 +08:00
parent 9bc857f628
commit efc18996a8

View File

@@ -3,9 +3,7 @@
"description": "Grant access to LuCI app smartdns", "description": "Grant access to LuCI app smartdns",
"read": { "read": {
"file": { "file": {
"/etc/smartdns/*": [ "read" ], "/etc/smartdns/*": [ "read" ]
"/usr/sbin/smartdns": [ "exec" ],
"/etc/init.d/smartdns restart" : [ "exec" ]
}, },
"ubus": { "ubus": {
"service": [ "list" ] "service": [ "list" ]
@@ -14,7 +12,8 @@
}, },
"write": { "write": {
"file": { "file": {
"/etc/smartdns/*": [ "write" ] "/etc/smartdns/*": [ "write" ],
"/etc/init.d/smartdns restart": [ "exec" ]
}, },
"uci": [ "smartdns" ] "uci": [ "smartdns" ]
} }