luci-base.json 946 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "unauthenticated": {
  3. "description": "Allow system feature probing",
  4. "read": {
  5. "ubus": {
  6. "luci": [ "getFeatures" ]
  7. }
  8. }
  9. },
  10. "luci-base": {
  11. "description": "Grant access to basic LuCI procedures",
  12. "read": {
  13. "file": {
  14. "/": [ "list" ],
  15. "/*": [ "list" ]
  16. },
  17. "ubus": {
  18. "file": [ "list" ],
  19. "uci": [ "changes", "get" ]
  20. }
  21. },
  22. "write": {
  23. "cgi-io": [ "upload" ],
  24. "file": {
  25. "/etc/luci-uploads/*": [ "write" ]
  26. },
  27. "ubus": {
  28. "file": [ "remove" ],
  29. "uci": [ "add", "apply", "confirm", "delete", "order", "rename", "set" ]
  30. }
  31. }
  32. },
  33. "luci-base-network-status": {
  34. "description": "Grant access to network status information",
  35. "read": {
  36. "ubus": {
  37. "luci-rpc": [ "getBoardJSON", "getHostHints", "getNetworkDevices", "getWirelessDevices" ],
  38. "network": [ "get_proto_handlers" ],
  39. "network.interface": [ "dump" ]
  40. },
  41. "uci": [ "luci", "network", "wireless" ]
  42. }
  43. }
  44. }