diff options
Diffstat (limited to 'applications/luci-app-olsr/root/usr/share/rpcd')
-rw-r--r-- | applications/luci-app-olsr/root/usr/share/rpcd/acl.d/luci-app-olsr-unauthenticated.json | 20 | ||||
-rw-r--r-- | applications/luci-app-olsr/root/usr/share/rpcd/acl.d/luci-app-olsr.json | 30 |
2 files changed, 47 insertions, 3 deletions
diff --git a/applications/luci-app-olsr/root/usr/share/rpcd/acl.d/luci-app-olsr-unauthenticated.json b/applications/luci-app-olsr/root/usr/share/rpcd/acl.d/luci-app-olsr-unauthenticated.json new file mode 100644 index 0000000000..66bd8b7372 --- /dev/null +++ b/applications/luci-app-olsr/root/usr/share/rpcd/acl.d/luci-app-olsr-unauthenticated.json @@ -0,0 +1,20 @@ +{ + "unauthenticated": { + "description": "Grant read access", + "read": { + "ubus": { + "uci": ["get"], + "luci-rpc": ["*"], + "network.interface": ["dump"], + "network": ["get_proto_handlers"], + "olsrd": ["olsrd_jsoninfo"], + "olsrd6": ["olsrd_jsoninfo"], + "olsrinfo": ["getjsondata", "hasipip", "hosts"], + "file": ["read"], + "iwinfo": ["assoclist"] + + }, + "uci": ["luci_olsr", "olsrd", "olsrd6", "network", "network.interface"] + } + } +} diff --git a/applications/luci-app-olsr/root/usr/share/rpcd/acl.d/luci-app-olsr.json b/applications/luci-app-olsr/root/usr/share/rpcd/acl.d/luci-app-olsr.json index 246afbc941..11c6946727 100644 --- a/applications/luci-app-olsr/root/usr/share/rpcd/acl.d/luci-app-olsr.json +++ b/applications/luci-app-olsr/root/usr/share/rpcd/acl.d/luci-app-olsr.json @@ -2,10 +2,34 @@ "luci-app-olsr": { "description": "Grant UCI access for luci-app-olsr", "read": { - "uci": [ "luci_olsr", "olsrd", "olsrd6" ] + "ubus": { + "luci-rpc": [ + "*" + ], + "olsrinfo": [ + "getjsondata", + "hasipip" + ] + }, + "file": { + "/etc/modules.d": [ + "list", + "read" + ], + "/usr/lib": [ "list" ] + }, + "uci": [ + "luci_olsr", + "olsrd", + "olsrd6" + ] }, "write": { - "uci": [ "luci_olsr", "olsrd", "olsrd6" ] + "uci": [ + "luci_olsr", + "olsrd", + "olsrd6" + ] } } -} +}
\ No newline at end of file |