luci-compat: add wildcard ACL allowing access to all uci configurations
authorJo-Philipp Wich <jo@mein.io>
Wed, 15 Apr 2020 12:57:20 +0000 (14:57 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 15 Apr 2020 12:58:54 +0000 (14:58 +0200)
Ref: https://github.com/openwrt/luci/issues/3917
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-compat/root/usr/share/rpcd/acl.d/luci-compat.json [new file with mode: 0644]

diff --git a/modules/luci-compat/root/usr/share/rpcd/acl.d/luci-compat.json b/modules/luci-compat/root/usr/share/rpcd/acl.d/luci-compat.json
new file mode 100644 (file)
index 0000000..ea1a435
--- /dev/null
@@ -0,0 +1,11 @@
+{
+       "allow-full-uci-access": {
+               "description": "Allow full UCI access for legacy applications",
+               "read": {
+                       "uci": [ "'*" ]
+               },
+               "write": {
+                       "uci": [ "'*" ]
+               }
+       }
+}