diff options
author | Dirk Brenken <dev@brenken.org> | 2020-03-28 14:35:10 +0100 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2020-03-28 14:35:10 +0100 |
commit | 0f18b873d893a30564a2684e0dcc7f4fb68ed296 (patch) | |
tree | ad80bf79f72e4a9935bcd74266afd4074d038ef9 /applications/luci-app-adblock/root/usr/share/rpcd/acl.d | |
parent | 0adf93de3b78fae8a19843906852abad6c7855ae (diff) |
luci-app-adblock: release 4.0.0
* complete rewrite, migrated to client side JS
* tested with mainline 19.07 and current master
* tested with latest Firefox & Chrome and all
standard themes (not OpenWrt2020!)
Pre-tested by many forum users, see here:
https://forum.openwrt.org/t/adblock-4-pre-releases/57101
* sync translations
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-adblock/root/usr/share/rpcd/acl.d')
-rw-r--r-- | applications/luci-app-adblock/root/usr/share/rpcd/acl.d/luci-app-adblock.json | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/applications/luci-app-adblock/root/usr/share/rpcd/acl.d/luci-app-adblock.json b/applications/luci-app-adblock/root/usr/share/rpcd/acl.d/luci-app-adblock.json new file mode 100644 index 0000000000..557e5328c3 --- /dev/null +++ b/applications/luci-app-adblock/root/usr/share/rpcd/acl.d/luci-app-adblock.json @@ -0,0 +1,30 @@ +{ + "luci-app-adblock": { + "description": "Grant access to LuCI app adblock", + "write": { + "uci": ["adblock"], + "file": { + "/etc/adblock/*": ["read"], + "/etc/adblock/adblock.blacklist": ["write"], + "/etc/adblock/adblock.whitelist": ["write"] + } + }, + "read": { + "cgi-io": [ "exec" ], + "file": { + "/var/run/adblock.pid": ["read"], + "/tmp/adb_runtime.json": ["read"], + "/etc/crontabs/root": ["read"], + "/sbin/logread -e adblock-": [ "exec" ], + "/usr/sbin/logread -e adblock-": [ "exec" ], + "/etc/init.d/adblock list" : [ "exec" ], + "/etc/init.d/adblock start" : [ "exec" ], + "/etc/init.d/adblock suspend" : [ "exec" ], + "/etc/init.d/adblock resume" : [ "exec" ], + "/etc/init.d/adblock report * [0-9]* [a-z]* json" : [ "exec" ], + "/etc/init.d/adblock timer * [0-9]* [0-9*]* [1-7,-*]*" : [ "exec" ], + "/etc/init.d/adblock query *" : [ "exec" ] + } + } + } +} |