diff options
author | Paul Spooren <mail@aparcar.org> | 2021-06-20 22:27:25 -1000 |
---|---|---|
committer | Paul Spooren <mail@aparcar.org> | 2021-07-02 09:22:59 -1000 |
commit | 02de3e4a2b08d2fb9d4f08b83a2526337671b6e2 (patch) | |
tree | 86f3ba73400aa9af6a15169bbd7ae0c01de01ab1 /applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/luci-app-attendedsysupgrade.json | |
parent | f1f566bfe2a6b0960ba95a5ea05ca4353b766867 (diff) |
luci-app-attendedsysupgrade: fix ACL definition
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>
Diffstat (limited to 'applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/luci-app-attendedsysupgrade.json')
-rw-r--r-- | applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/luci-app-attendedsysupgrade.json | 31 |
1 files changed, 25 insertions, 6 deletions
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" + ] } } } |