Initial commit

This commit is contained in:
gSpot
2020-06-19 20:43:08 +03:00
parent 4cc2914f10
commit cf2a9062b6
34 changed files with 5644 additions and 0 deletions
@@ -0,0 +1,63 @@
{
"admin/services/ruantiblock": {
"title": "Ruantiblock",
"order": 60,
"action": {
"type": "alias",
"path": "admin/services/ruantiblock/service"
},
"depends": {
"acl": [ "luci-app-ruantiblock" ],
"fs": {
"/usr/bin/ruantiblock": "executable",
"/etc/init.d/ruantiblock": "executable"
},
"uci": { "ruantiblock": true }
}
},
"admin/services/ruantiblock/service": {
"title": "Service",
"order": 10,
"action": {
"type": "view",
"path": "ruantiblock/service"
}
},
"admin/services/ruantiblock/settings": {
"title": "Settings",
"order": 20,
"action": {
"type": "view",
"path": "ruantiblock/settings"
}
},
"admin/services/ruantiblock/cron": {
"title": "Blacklist updates",
"order": 30,
"action": {
"type": "view",
"path": "ruantiblock/cron"
}
},
"admin/services/ruantiblock/info": {
"title": "Statistics",
"order": 40,
"action": {
"type": "view",
"path": "ruantiblock/info"
}
},
"admin/services/ruantiblock/log": {
"title": "Log",
"order": 50,
"action": {
"type": "view",
"path": "ruantiblock/log"
}
}
}
@@ -0,0 +1,37 @@
{
"luci-app-ruantiblock": {
"description": "Grant access to ruantiblock procedures",
"read": {
"cgi-io": [ "exec" ],
"file": {
"/usr/bin": [ "list" ],
"/etc/ruantiblock/fqdn_filter": [ "read" ],
"/etc/ruantiblock/ip_filter": [ "read" ],
"/etc/ruantiblock/user_entries": [ "read" ],
"/var/run/ruantiblock.token": [ "read" ],
"/etc/tor/torrc": [ "read" ],
"/etc/crontabs/root": [ "read" ],
"/usr/bin/ruantiblock": [ "exec" ],
"/etc/init.d/ruantiblock": [ "exec" ],
"/etc/init.d/tor enabled": [ "exec" ],
"/etc/init.d/tor restart": [ "exec" ],
"/etc/init.d/cron enabled": [ "exec" ],
"/etc/init.d/cron enable": [ "exec" ],
"/etc/init.d/cron restart": [ "exec" ],
"/sbin/logread -e ruantiblock": [ "exec" ],
"/usr/sbin/logread -e ruantiblock": [ "exec" ]
},
"uci": [ "network", "ruantiblock" ]
},
"write": {
"file": {
"/etc/ruantiblock/fqdn_filter": [ "write" ],
"/etc/ruantiblock/ip_filter": [ "write" ],
"/etc/ruantiblock/user_entries": [ "write" ],
"/etc/tor/torrc": [ "write" ],
"/etc/crontabs/root": [ "write" ]
},
"uci": [ "ruantiblock" ]
}
}
}