luci-app-opkg.json 774 B

1234567891011121314151617181920212223242526272829
  1. {
  2. "luci-app-opkg": {
  3. "description": "Grant access to opkg management",
  4. "read": {
  5. "cgi-io": [ "exec" ],
  6. "file": {
  7. "/usr/libexec/opkg-list installed": [ "exec" ],
  8. "/usr/libexec/opkg-list available": [ "exec" ],
  9. "/usr/libexec/opkg-call list-installed": [ "exec" ],
  10. "/usr/libexec/opkg-call list-available": [ "exec" ],
  11. "/etc/opkg.conf": [ "read" ],
  12. "/etc/opkg/*.conf": [ "read" ]
  13. },
  14. "ubus": {
  15. "luci": [ "getMountPoints" ]
  16. }
  17. },
  18. "write": {
  19. "file": {
  20. "/usr/libexec/opkg-call install *": [ "exec" ],
  21. "/usr/libexec/opkg-call remove *": [ "exec" ],
  22. "/usr/libexec/opkg-call update *": [ "exec" ],
  23. "/etc/opkg.conf": [ "write" ],
  24. "/etc/opkg/*.conf": [ "write" ],
  25. "/tmp/upload.ipk": [ "write" ]
  26. }
  27. }
  28. }
  29. }