mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2026-01-02 22:58:54 +03:00
@@ -1,46 +1,48 @@
|
||||
{
|
||||
"admin/services/zapret": {
|
||||
"title": "Zapret",
|
||||
"order": 61,
|
||||
"admin/services/zapret2": {
|
||||
"title": "Zapret2",
|
||||
"order": 62,
|
||||
"action": {
|
||||
"type": "alias",
|
||||
"path": "admin/services/zapret/service"
|
||||
"path": "admin/services/zapret2/service"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-zapret" ],
|
||||
"acl": [ "luci-app-zapret2" ],
|
||||
"fs": {
|
||||
"/opt/zapret/sync_config.sh": "executable",
|
||||
"/opt/zapret/restore-def-cfg.sh": "executable",
|
||||
"/etc/init.d/zapret": "executable"
|
||||
"/opt/zapret2/sync_config.sh": "executable",
|
||||
"/opt/zapret2/restore-def-cfg.sh": "executable",
|
||||
"/opt/zapret2/script-exec.sh": "executable",
|
||||
"/opt/zapret2/update-pkg.sh.sh": "executable",
|
||||
"/etc/init.d/zapret2": "executable"
|
||||
},
|
||||
"uci": { "zapret": true }
|
||||
"uci": { "zapret2": true }
|
||||
}
|
||||
},
|
||||
|
||||
"admin/services/zapret/service": {
|
||||
"admin/services/zapret2/service": {
|
||||
"title": "Service",
|
||||
"order": 10,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "zapret/service"
|
||||
"path": "zapret2/service"
|
||||
}
|
||||
},
|
||||
|
||||
"admin/services/zapret/settings": {
|
||||
"admin/services/zapret2/settings": {
|
||||
"title": "Settings",
|
||||
"order": 20,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "zapret/settings"
|
||||
"path": "zapret2/settings"
|
||||
}
|
||||
},
|
||||
|
||||
"admin/services/zapret/dmnlog": {
|
||||
"admin/services/zapret2/dmnlog": {
|
||||
"title": "Log Viewer",
|
||||
"order": 30,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "zapret/dmnlog"
|
||||
"path": "zapret2/dmnlog"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
{
|
||||
"luci-app-zapret": {
|
||||
"description": "Grant access to zapret procedures",
|
||||
"luci-app-zapret2": {
|
||||
"description": "Grant access to zapret2 procedures",
|
||||
"read": {
|
||||
"cgi-io": [ "exec" ],
|
||||
"file": {
|
||||
"/opt/zapret/config": [ "read" ],
|
||||
"/opt/zapret/ipset/*": [ "read" ],
|
||||
"/opt/zapret/init.d/openwrt/custom.d/*": [ "read" ],
|
||||
"/opt/zapret2/config": [ "read" ],
|
||||
"/opt/zapret2/ipset/*": [ "read" ],
|
||||
"/opt/zapret2/init.d/openwrt/custom.d/*": [ "read" ],
|
||||
"/etc/crontabs/root": [ "read" ],
|
||||
"/tmp/zapret*": [ "read" ],
|
||||
"/etc/init.d/zapret*": [ "exec" ],
|
||||
"/etc/init.d/zapret2*": [ "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/script-exec.sh*": [ "exec" ],
|
||||
"/opt/zapret/update-pkg.sh*": [ "exec" ],
|
||||
"/opt/zapret/sync_config.sh*": [ "exec" ]
|
||||
"/opt/zapret2/restore-def-cfg.sh*": [ "exec" ],
|
||||
"/opt/zapret2/script-exec.sh*": [ "exec" ],
|
||||
"/opt/zapret2/update-pkg.sh*": [ "exec" ],
|
||||
"/opt/zapret2/sync_config.sh*": [ "exec" ]
|
||||
},
|
||||
"uci": [ "zapret", "network" ],
|
||||
"uci": [ "zapret2", "network" ],
|
||||
"ubus": {
|
||||
"luci": [ "getInitList", "setInitAction" ],
|
||||
"service": [ "list" ]
|
||||
@@ -29,12 +29,12 @@
|
||||
},
|
||||
"write": {
|
||||
"file": {
|
||||
"/opt/zapret/config": [ "write" ],
|
||||
"/opt/zapret/ipset/*": [ "write" ],
|
||||
"/opt/zapret/init.d/openwrt/custom.d/*": [ "write" ],
|
||||
"/opt/zapret2/config": [ "write" ],
|
||||
"/opt/zapret2/ipset/*": [ "write" ],
|
||||
"/opt/zapret2/init.d/openwrt/custom.d/*": [ "write" ],
|
||||
"/etc/crontabs/root": [ "write" ]
|
||||
},
|
||||
"uci": [ "zapret" ]
|
||||
"uci": [ "zapret2" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user