2020-06-19 20:43:08 +03:00
|
|
|
{
|
|
|
|
|
"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" ],
|
2021-03-15 21:02:38 +03:00
|
|
|
"/sbin/logread -e ruantiblock": [ "exec" ],
|
|
|
|
|
"/usr/sbin/logread -e ruantiblock": [ "exec" ]
|
2020-06-19 20:43:08 +03:00
|
|
|
},
|
|
|
|
|
"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" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|