From ebd09332b4330001ecd3a86d1b379e0afc3bafee Mon Sep 17 00:00:00 2001 From: Ayushman Tripathi Date: Mon, 26 Jun 2023 01:23:48 +0530 Subject: luci-app-olsr: migrate to js Signed-off-by: Ayushman Tripathi luci-app-olsr: migrate to js fix XSS vulnerability Signed-off-by: Ayushman Tripathi luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix minor bugs Signed-off-by: Ayushman Tripathi luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix plugins bugs Signed-off-by: Ayushman Tripathi luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix interfaces bugs Signed-off-by: Ayushman Tripathi luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix interface & snr bugs Signed-off-by: Ayushman Tripathi luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix hostname Signed-off-by: Ayushman Tripathi luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix typo Signed-off-by: Ayushman Tripathi luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix missing files, use rpc for hostnames, remove luci-compat Signed-off-by: Ayushman Tripathi luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix menu order Signed-off-by: Ayushman Tripathi luci-app-olsr: migrate to js --- .../rpcd/acl.d/luci-app-olsr-unauthenticated.json | 20 +++++++++++++++ .../root/usr/share/rpcd/acl.d/luci-app-olsr.json | 30 +++++++++++++++++++--- 2 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 applications/luci-app-olsr/root/usr/share/rpcd/acl.d/luci-app-olsr-unauthenticated.json (limited to 'applications/luci-app-olsr/root/usr/share/rpcd') 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 -- cgit v1.2.3