luci-app-adblock.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. {
  2. "luci-app-adblock": {
  3. "description": "Grant access to LuCI app adblock",
  4. "write": {
  5. "uci": ["adblock"],
  6. "file": {
  7. "/etc/adblock/*": ["read"],
  8. "/etc/adblock/adblock.blacklist": ["write"],
  9. "/etc/adblock/adblock.whitelist": ["write"]
  10. }
  11. },
  12. "read": {
  13. "cgi-io": [ "exec" ],
  14. "file": {
  15. "/var/run/adblock.pid": ["read"],
  16. "/tmp/adb_runtime.json": ["read"],
  17. "/etc/crontabs/root": ["read"],
  18. "/sbin/logread -e adblock-": [ "exec" ],
  19. "/usr/sbin/logread -e adblock-": [ "exec" ],
  20. "/etc/init.d/adblock list" : [ "exec" ],
  21. "/etc/init.d/adblock reload" : [ "exec" ],
  22. "/etc/init.d/adblock restart" : [ "exec" ],
  23. "/etc/init.d/adblock suspend" : [ "exec" ],
  24. "/etc/init.d/adblock resume" : [ "exec" ],
  25. "/etc/init.d/adblock report [a-z]* [0-9]* *" : [ "exec" ],
  26. "/etc/init.d/adblock timer list" : [ "exec" ],
  27. "/etc/init.d/adblock timer remove [0-9]*" : [ "exec" ],
  28. "/etc/init.d/adblock timer add * [0-9]* [0-9*]* [1-7,-*]*" : [ "exec" ],
  29. "/etc/init.d/adblock query *" : [ "exec" ]
  30. },
  31. "uci": ["adblock"]
  32. }
  33. }
  34. }