summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-natmap/root/usr
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2022-12-15 17:41:52 +0200
committerGitHub <noreply@github.com>2022-12-15 17:41:52 +0200
commit05194712bb2119b79041f256c44e35a044594f75 (patch)
tree6636e8f4fdf7af3c178a58f0327a26c902e12a11 /applications/luci-app-natmap/root/usr
parente99a1ce3a7fd449b5cdfb68bbcc26fe3ec121456 (diff)
parentcc01c0bffa9030318c39cf493c42c48d22500ec3 (diff)
Merge pull request #6138 from ysc3839/natmap
luci-app-natmap: add new package
Diffstat (limited to 'applications/luci-app-natmap/root/usr')
-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"]
+ }
+ }
+}