luci-app-attendedsysupgrade: fix ACL definition 5165/head
authorPaul Spooren <mail@aparcar.org>
Mon, 21 Jun 2021 08:27:25 +0000 (22:27 -1000)
committerPaul Spooren <mail@aparcar.org>
Fri, 2 Jul 2021 19:22:59 +0000 (09:22 -1000)
Fix the ACL file which handles the permissions for the LuCI app.

Suggested-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Paul Spooren <mail@aparcar.org>
applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/luci-app-attendedsysupgrade.json

index e3ceeaa35d2a3d56324b02fa37e2f0bc05e760e1..ec102e3dad7b1b22f4fee94e44e8affd9c6bffbe 100644 (file)
@@ -2,16 +2,35 @@
        "luci-app-attendedsysupgrade": {
                "description": "Grant UCI access to LuCI app attendedsysupgrade",
                "read": {
-                       "uci": ["attendedsysupgrade"],
                        "ubus": {
-                               "rpc-sys": ["upgrade_start", "packagelist"]
-                       }
+                               "rpc-sys": [
+                                       "upgrade_start",
+                                       "packagelist"
+                               ],
+                               "system": [
+                                       "board",
+                                       "info"
+                               ],
+                               "uci": [
+                                       "get"
+                               ]
+                       },
+                       "uci": [
+                               "attendedsysupgrade"
+                       ]
                },
                "write": {
-                       "uci": ["attendedsysupgrade"],
+                       "cgi-io": [
+                               "upload"
+                       ],
                        "ubus": {
-                               "rpc-sys": ["upgrade_start"]
-                       }
+                               "uci": [
+                                       "set", "commit"
+                               ]
+                       },
+                       "uci": [
+                               "attendedsysupgrade"
+                       ]
                }
        }
 }