luci-app-attendedsysupgrade: fix ACL definition
authorPaul Spooren <[email protected]>
Mon, 21 Jun 2021 08:27:25 +0000 (22:27 -1000)
committerPaul Spooren <[email protected]>
Mon, 26 Jul 2021 12:02:22 +0000 (14:02 +0200)
Fix the ACL file which handles the permissions for the LuCI app.

Suggested-by: Jo-Philipp Wich <[email protected]>
Signed-off-by: Paul Spooren <[email protected]>
(cherry picked from commit 02de3e4a2b08d2fb9d4f08b83a2526337671b6e2)

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"
+                       ]
                }
        }
 }