luci-app-smartdns: remove unnecessary permissions

Signed-off-by: Nick Peng <pymumu@gmail.com>
This commit is contained in:
Nick Peng 2022-10-14 17:57:04 +08:00
parent a12b467a65
commit 1564084bcb

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" ]
} }