summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-natmap/root
diff options
context:
space:
mode:
authorRichard Yu <yurichard3839@gmail.com>2022-12-09 19:02:08 +0800
committerRichard Yu <yurichard3839@gmail.com>2022-12-09 19:02:08 +0800
commitcc01c0bffa9030318c39cf493c42c48d22500ec3 (patch)
tree615480469f78f52445f80818cd9cd203a6ca6638 /applications/luci-app-natmap/root
parenta5cef0c935aecd623141cbfdd21226cb3b4f5991 (diff)
luci-app-natmap: add new package
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
Diffstat (limited to 'applications/luci-app-natmap/root')
-rw-r--r--applications/luci-app-natmap/root/usr/share/luci/menu.d/luci-app-natmap.json12
-rw-r--r--applications/luci-app-natmap/root/usr/share/rpcd/acl.d/luci-app-natmap.json17
2 files changed, 29 insertions, 0 deletions
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"]
+ }
+ }
+}