luci-app-omcproxy: add UCI access rules
authorJo-Philipp Wich <jo@mein.io>
Wed, 13 May 2020 08:22:25 +0000 (10:22 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 13 May 2020 08:22:25 +0000 (10:22 +0200)
Fixes: #4042
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-omcproxy/root/usr/share/rpcd/acl.d/luci-app-omcproxy.json [new file with mode: 0644]

diff --git a/applications/luci-app-omcproxy/root/usr/share/rpcd/acl.d/luci-app-omcproxy.json b/applications/luci-app-omcproxy/root/usr/share/rpcd/acl.d/luci-app-omcproxy.json
new file mode 100644 (file)
index 0000000..63bf114
--- /dev/null
@@ -0,0 +1,11 @@
+{
+       "luci-app-omcproxy": {
+               "description": "Grant UCI access for luci-app-omcproxy",
+               "read": {
+                       "uci": [ "omcproxy" ]
+               },
+               "write": {
+                       "uci": [ "omcproxy" ]
+               }
+       }
+}