summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-compat
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-15 14:57:20 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-15 14:58:54 +0200
commit06fea062b75296bc005b30ca14ed1881598a0e1c (patch)
tree718f76966a3f66e20752a34d7debbe598864418a /modules/luci-compat
parent62be45c466ff70cb22278cc64f3a55fdb7dbbf19 (diff)
luci-compat: add wildcard ACL allowing access to all uci configurations
Ref: https://github.com/openwrt/luci/issues/3917 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-compat')
-rw-r--r--modules/luci-compat/root/usr/share/rpcd/acl.d/luci-compat.json11
1 files changed, 11 insertions, 0 deletions
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
index 000000000..ea1a43536
--- /dev/null
+++ b/modules/luci-compat/root/usr/share/rpcd/acl.d/luci-compat.json
@@ -0,0 +1,11 @@
+{
+ "allow-full-uci-access": {
+ "description": "Allow full UCI access for legacy applications",
+ "read": {
+ "uci": [ "'*" ]
+ },
+ "write": {
+ "uci": [ "'*" ]
+ }
+ }
+}