diff options
author | Ayushman Tripathi <ayushmantripathi7724@gmail.com> | 2023-06-26 01:23:48 +0530 |
---|---|---|
committer | Ayushman Tripathi <ayushmantripathi7724@gmail.com> | 2023-07-20 20:05:50 +0530 |
commit | ebd09332b4330001ecd3a86d1b379e0afc3bafee (patch) | |
tree | 39e973d153f0081800822e6a4a325f71d4441a00 /applications/luci-app-olsr/root/usr/share/rpcd | |
parent | fd5440a7be5506fa39c3993f10f754dedb5e8888 (diff) |
luci-app-olsr: migrate to js
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com>
luci-app-olsr: migrate to js fix XSS vulnerability
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com>
luci-app-olsr: migrate to js
luci-app-olsr: migrate to js fix minor bugs
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com>
luci-app-olsr: migrate to js
luci-app-olsr: migrate to js fix plugins bugs
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com>
luci-app-olsr: migrate to js
luci-app-olsr: migrate to js fix interfaces bugs
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com>
luci-app-olsr: migrate to js
luci-app-olsr: migrate to js fix interface & snr bugs
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com>
luci-app-olsr: migrate to js
luci-app-olsr: migrate to js fix hostname
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com>
luci-app-olsr: migrate to js
luci-app-olsr: migrate to js fix typo
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com>
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 <ayushmantripathi7724@gmail.com>
luci-app-olsr: migrate to js
luci-app-olsr: migrate to js fix menu order
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com>
luci-app-olsr: migrate to js
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 |