From: Paul Spooren Date: Mon, 21 Jun 2021 08:27:25 +0000 (-1000) Subject: luci-app-attendedsysupgrade: fix ACL definition X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=02de3e4a2b08d2fb9d4f08b83a2526337671b6e2;p=project%2Fluci.git luci-app-attendedsysupgrade: fix ACL definition Fix the ACL file which handles the permissions for the LuCI app. Suggested-by: Jo-Philipp Wich Signed-off-by: Paul Spooren --- diff --git a/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/luci-app-attendedsysupgrade.json b/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/luci-app-attendedsysupgrade.json index e3ceeaa35d..ec102e3dad 100644 --- a/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/luci-app-attendedsysupgrade.json +++ b/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/luci-app-attendedsysupgrade.json @@ -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" + ] } } }