luci-app-olsrd2: New Package for OLSR2 configuration and status visualisation'
[feed/routing.git] / luci-app-olsrd2 / root / usr / share / rpcd / acl.d / luci-app-olsrd2.json
diff --git a/luci-app-olsrd2/root/usr/share/rpcd/acl.d/luci-app-olsrd2.json b/luci-app-olsrd2/root/usr/share/rpcd/acl.d/luci-app-olsrd2.json
new file mode 100644 (file)
index 0000000..61e8691
--- /dev/null
@@ -0,0 +1,27 @@
+{
+       "unauthenticated": {
+               "description": "Allow system feature probing",
+               "read": {
+                       "file": {
+                               "/www/luci-static/resources/view/olsrd2": [ "list" ]
+                       },
+                       "ubus": {
+                               "status.olsrd2": [ "getVersion", "getLan", "getNode", "getNeighbors", "getAttached_network" ],
+                               "file": [ "list" ]
+
+                       }
+               }
+       },
+       "luci-app-olsrd2": {
+               "description": "Grant UCI access for luci-app-olsrd2",
+               "read": {
+                       "uci": [ "olsrd2" ],
+                       "ubus": {
+                               "status.olsrd2": [ "getVersion", "getLan", "getNode", "getNeighbors", "getAttached_network" ]
+                       }
+               },
+               "write": {
+                       "uci": [ "olsrd2" ]
+               }
+       }
+}