mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-06 03:26:49 +03:00
39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
{
|
|
"luci-app-zapret": {
|
|
"description": "Grant access to zapret procedures",
|
|
"read": {
|
|
"cgi-io": [ "exec" ],
|
|
"file": {
|
|
"/opt/zapret/config": [ "read" ],
|
|
"/opt/zapret/ipset/*": [ "read" ],
|
|
"/opt/zapret/init.d/openwrt/custom.d/*": [ "read" ],
|
|
"/etc/crontabs/root": [ "read" ],
|
|
"/tmp/zapret*": [ "read" ],
|
|
"/etc/init.d/zapret*": [ "exec" ],
|
|
"/bin/ps*": [ "exec" ],
|
|
"/bin/cat*": [ "exec" ],
|
|
"/bin/busybox*": [ "exec" ],
|
|
"/bin/opkg*": [ "exec" ],
|
|
"/usr/bin/apk*": [ "exec" ],
|
|
"/usr/bin/find*": [ "exec" ],
|
|
"/opt/zapret/restore-def-cfg.sh*": [ "exec" ],
|
|
"/opt/zapret/sync_config.sh*": [ "exec" ]
|
|
},
|
|
"uci": [ "zapret", "network" ],
|
|
"ubus": {
|
|
"luci": [ "getInitList", "setInitAction" ],
|
|
"service": [ "list" ]
|
|
}
|
|
},
|
|
"write": {
|
|
"file": {
|
|
"/opt/zapret/config": [ "write" ],
|
|
"/opt/zapret/ipset/*": [ "write" ],
|
|
"/opt/zapret/init.d/openwrt/custom.d/*": [ "write" ],
|
|
"/etc/crontabs/root": [ "write" ]
|
|
},
|
|
"uci": [ "zapret" ]
|
|
}
|
|
}
|
|
}
|