luci2: add network diagnostics view
[project/luci2/ui.git] / luci2 / share / acl.d / luci2.json
index e912e17..e8e6949 100644 (file)
@@ -1,4 +1,15 @@
 {
+       "unauthenticated": {
+               "description": "Functions allowed for unauthenticated requests",
+               "read": {
+                       "ubus": {
+                               "luci2.ui": [
+                                       "themes"
+                               ]
+                       }
+               }
+       },
+
        "core": {
                "description": "Core functions for LuCI",
                "read": {
@@ -7,7 +18,8 @@
                                        "*"
                                ],
                                "session": [
-                                       "access"
+                                       "access",
+                                       "destroy"
                                ],
                                "uci": [
                                        "*"
                }
        },
 
+       "users": {
+               "description": "Guest login settings",
+               "read": {
+                       "uci": [
+                               "rpcd"
+                       ]
+               },
+               "write": {
+                       "uci": [
+                               "rpcd"
+                       ]
+               }
+       },
+
        "software": {
                "description": "Package management",
                "read": {
                }
        },
 
+       "upgrade": {
+               "description": "Firmware upgrade",
+               "read": {
+                       "ubus": {
+                               "luci2.system": [
+                                       "upgrade_test",
+                                       "reset_test"
+                               ]
+                       }
+               },
+               "write": {
+                       "luci-io": [
+                               "upload"
+                       ],
+                       "ubus": {
+                               "luci2.system": [
+                                       "upgrade_start",
+                                       "upgrade_clean",
+                                       "reset_start",
+                                       "reboot"
+                               ]
+                       }
+               }
+       },
+
+       "backup": {
+               "description": "Backup and Restore",
+               "read": {
+                       "luci-io": [
+                               "backup"
+                       ],
+                       "ubus": {
+                               "luci2.system": [
+                                       "backup_config_get",
+                                       "backup_list"
+                               ]
+                       }
+               },
+               "write": {
+                       "ubus": {
+                               "luci2.system": [
+                                       "backup_clean",
+                                       "backup_config_set",
+                                       "backup_restore",
+                                       "reboot"
+                               ]
+                       }
+               }
+       },
+
        "startup": {
                "description": "System boot settings",
                "read": {
                                "system"
                        ]
                }
+       },
+
+       "switch": {
+               "description": "Ethernet switch configuration",
+               "read": {
+                       "ubus": {
+                               "luci2.network": [
+                                       "switch_list",
+                                       "switch_info",
+                                       "switch_status"
+                               ]
+                       },
+                       "uci": [
+                               "network"
+                       ]
+               },
+               "write": {
+                       "uci": [
+                               "network"
+                       ]
+               }
+       },
+
+       "diagnostics": {
+               "description": "Network diagnostic tools",
+               "read": {
+                       "ubus": {
+                               "luci2.network": [
+                                       "ping",
+                                       "ping6",
+                                       "traceroute",
+                                       "traceroute6",
+                                       "nslookup"
+                               ]
+                       }
+               }
        }
 }