diff options
Diffstat (limited to 'applications/luci-app-olsr/root/usr/share')
4 files changed, 205 insertions, 3 deletions
diff --git a/applications/luci-app-olsr/root/usr/share/luci/menu.d/luci-app-olsr-backend.json b/applications/luci-app-olsr/root/usr/share/luci/menu.d/luci-app-olsr-backend.json new file mode 100644 index 0000000000..9daa5c72ff --- /dev/null +++ b/applications/luci-app-olsr/root/usr/share/luci/menu.d/luci-app-olsr-backend.json @@ -0,0 +1,86 @@ +{ + "admin/services/olsrd": { + "title": "OLSR IPv4", + "order": 5, + "depends": { + "acl": ["luci-app-olsr"] + }, + "action": { + "type": "view", + "path": "olsr/frontend/olsrd" + } + }, + "admin/services/olsrd/display": { + "title": "Display", + "order": 10, + "action": { + "type": "view", + "path": "olsr/frontend/olsrddisplay" + } + }, + "admin/services/olsrd/iface": { + "order": 10, + "action": { + "type": "view", + "path": "olsr/frontend/olsrdiface" + } + }, + "admin/services/olsrd/hna": { + "title": "HNA Announcements", + "order": 15, + "action": { + "type": "view", + "path": "olsr/frontend/olsrdhna" + } + }, + "admin/services/olsrd/plugins": { + "title": "Plugins", + "order": 20, + "action": { + "type": "view", + "path": "olsr/frontend/olsrdplugins" + } + }, + "admin/services/olsrd6": { + "title": "OLSR IPv6", + "order": 5, + "depends": { + "acl": ["luci-app-olsr"] + }, + "action": { + "type": "view", + "path": "olsr/frontend/olsrd6" + } + }, + "admin/services/olsrd6/display": { + "title": "Display", + "order": 10, + "action": { + "type": "view", + "path": "olsr/frontend/olsrddisplay" + } + }, + "admin/services/olsrd6/iface": { + "order": 10, + "action": { + "type": "view", + "path": "olsr/frontend/olsrdiface6" + } + }, + "admin/services/olsrd6/hna": { + "title": "HNA Announcements", + "order": 15, + "action": { + "type": "view", + "path": "olsr/frontend/olsrdhna6" + } + }, + "admin/services/olsrd6/plugins": { + "title": "Plugins", + "order": 20, + "action": { + "type": "view", + "path": "olsr/frontend/olsrdplugins6" + } + } +} diff --git a/applications/luci-app-olsr/root/usr/share/luci/menu.d/luci-app-olsr-frontend.json b/applications/luci-app-olsr/root/usr/share/luci/menu.d/luci-app-olsr-frontend.json new file mode 100644 index 0000000000..2c1f055e2d --- /dev/null +++ b/applications/luci-app-olsr/root/usr/share/luci/menu.d/luci-app-olsr-frontend.json @@ -0,0 +1,72 @@ +{ + "olsr": { + "title": "OLSR", + "order": 5, + "action": { + "type": "firstchild" + } + }, + "olsr/neighbours": { + "title": "Neighbours", + "order": 15, + "action": { + "type": "view", + "path": "olsr/status-olsr/neighbors" + } + }, + "olsr/routes": { + "title": "Routes", + "order": 20, + "action": { + "type": "view", + "path": "olsr/status-olsr/routes" + } + }, + "olsr/topology": { + "title": "Topology", + "order": 25, + "action": { + "type": "view", + "path": "olsr/status-olsr/topology" + } + }, + "olsr/hna": { + "title": "HNA", + "order": 30, + "action": { + "type": "view", + "path": "olsr/status-olsr/hna" + } + }, + "olsr/mid": { + "title": "MID", + "order": 35, + "action": { + "type": "view", + "path": "olsr/status-olsr/mid" + } + }, + "olsr/interface": { + "title": "Interface", + "order": 35, + "action": { + "type": "view", + "path": "olsr/status-olsr/interfaces" + } + }, + "olsr/smartgw": { + "title": "SmartGW", + "order": 40, + "action": { + "type": "view", + "path": "olsr/status-olsr/smartgw" + } + }, + "olsr/error_olsr": { + "order": 45, + "action": { + "type": "view", + "path": "olsr/status-olsr/error_olsr" + } + } +} 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 |