From cc01c0bffa9030318c39cf493c42c48d22500ec3 Mon Sep 17 00:00:00 2001 From: Richard Yu Date: Fri, 9 Dec 2022 19:02:08 +0800 Subject: luci-app-natmap: add new package Signed-off-by: Richard Yu --- .../root/usr/share/luci/menu.d/luci-app-natmap.json | 12 ++++++++++++ .../root/usr/share/rpcd/acl.d/luci-app-natmap.json | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 applications/luci-app-natmap/root/usr/share/luci/menu.d/luci-app-natmap.json create mode 100644 applications/luci-app-natmap/root/usr/share/rpcd/acl.d/luci-app-natmap.json (limited to 'applications/luci-app-natmap/root/usr') diff --git a/applications/luci-app-natmap/root/usr/share/luci/menu.d/luci-app-natmap.json b/applications/luci-app-natmap/root/usr/share/luci/menu.d/luci-app-natmap.json new file mode 100644 index 0000000000..4513a11160 --- /dev/null +++ b/applications/luci-app-natmap/root/usr/share/luci/menu.d/luci-app-natmap.json @@ -0,0 +1,12 @@ +{ + "admin/services/natmap": { + "title": "NATMap", + "action": { + "type": "view", + "path": "natmap" + }, + "depends": { + "acl": [ "luci-app-natmap" ] + } + } +} diff --git a/applications/luci-app-natmap/root/usr/share/rpcd/acl.d/luci-app-natmap.json b/applications/luci-app-natmap/root/usr/share/rpcd/acl.d/luci-app-natmap.json new file mode 100644 index 0000000000..ccaee88795 --- /dev/null +++ b/applications/luci-app-natmap/root/usr/share/rpcd/acl.d/luci-app-natmap.json @@ -0,0 +1,17 @@ +{ + "luci-app-natmap": { + "description": "Grant access to LuCI app natmap", + "read": { + "file": { + "/var/run/natmap/*": [ "read" ] + }, + "ubus": { + "service": [ "list" ] + }, + "uci": ["natmap"] + }, + "write": { + "uci": ["natmap"] + } + } +} -- cgit v1.2.3