summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-07-04 11:31:16 +0200
committerGitHub <noreply@github.com>2021-07-04 11:31:16 +0200
commite17180d350ec5db3fa76ad59bec636f01e6c100f (patch)
tree4eff17a2469ad1c61860682f5538f10c110751ec /applications
parentc244cd3e8e28d667f4b32a46ad4b027c6f17b25a (diff)
parent02de3e4a2b08d2fb9d4f08b83a2526337671b6e2 (diff)
Merge pull request #5165 from aparcar/fix-acl
luci-app-attendedsysupgrade: fix ACL definition
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/luci-app-attendedsysupgrade.json31
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"
+ ]
}
}
}