luci-mod-status.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "luci-mod-status-realtime": {
  3. "description": "Grant access to realtime statistics",
  4. "read": {
  5. "ubus": {
  6. "luci": [ "getConntrackList", "getRealtimeStats" ],
  7. "network.rrdns": [ "lookup" ]
  8. }
  9. }
  10. },
  11. "luci-mod-status-processes": {
  12. "description": "Grant access to process status",
  13. "read": {
  14. "ubus": {
  15. "luci": [ "getProcessList" ]
  16. }
  17. },
  18. "write": {
  19. "file": {
  20. "/bin/kill": [ "exec" ]
  21. },
  22. "ubus": {
  23. "file": [ "exec" ]
  24. }
  25. }
  26. },
  27. "luci-mod-status-logs": {
  28. "description": "Grant access to system logs",
  29. "read": {
  30. "cgi-io": [ "exec" ],
  31. "file": {
  32. "/bin/dmesg -r": [ "exec" ],
  33. "/usr/libexec/syslog-wrapper": [ "exec" ]
  34. },
  35. "ubus": {
  36. "file": [ "stat" ]
  37. }
  38. }
  39. },
  40. "luci-mod-status-routes": {
  41. "description": "Grant access to routing status",
  42. "read": {
  43. "file": {
  44. "/sbin/ip -[46] neigh show": [ "exec" ],
  45. "/sbin/ip -[46] route show table all": [ "exec" ],
  46. "/sbin/ip -[46] rule show": [ "exec" ]
  47. },
  48. "ubus": {
  49. "file": [ "exec" ]
  50. }
  51. }
  52. },
  53. "luci-mod-status-channel_analysis": {
  54. "description": "Grant access to wireless channel status",
  55. "read": {
  56. "ubus": {
  57. "iwinfo": [ "info", "freqlist", "scan" ]
  58. }
  59. }
  60. },
  61. "luci-mod-status-firewall": {
  62. "description": "Grant access to firewall status",
  63. "read": {
  64. "cgi-io": [ "exec" ],
  65. "file": {
  66. "/usr/sbin/nft --terse --json list ruleset": [ "exec" ],
  67. "/usr/sbin/iptables --line-numbers -w -nvxL -t *": [ "exec" ],
  68. "/usr/sbin/ip6tables --line-numbers -w -nvxL -t *": [ "exec" ],
  69. "/usr/sbin/ip6tables": [ "list" ],
  70. "/usr/sbin/iptables-save": [ "exec" ],
  71. "/usr/sbin/ip6tables-save": [ "exec" ]
  72. },
  73. "ubus": {
  74. "file": [ "stat" ]
  75. }
  76. },
  77. "write": {
  78. "cgi-io": [ "exec" ],
  79. "file": {
  80. "/etc/init.d/firewall restart": [ "exec" ],
  81. "/usr/sbin/iptables -Z": [ "exec" ],
  82. "/usr/sbin/ip6tables -Z": [ "exec" ]
  83. },
  84. "ubus": {
  85. "file": [ "exec" ]
  86. }
  87. }
  88. }
  89. }