diff options
author | Richard Yu <yurichard3839@gmail.com> | 2022-12-09 19:02:08 +0800 |
---|---|---|
committer | Richard Yu <yurichard3839@gmail.com> | 2022-12-09 19:02:08 +0800 |
commit | cc01c0bffa9030318c39cf493c42c48d22500ec3 (patch) | |
tree | 615480469f78f52445f80818cd9cd203a6ca6638 /applications/luci-app-natmap/root | |
parent | a5cef0c935aecd623141cbfdd21226cb3b4f5991 (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.json | 12 | ||||
-rw-r--r-- | applications/luci-app-natmap/root/usr/share/rpcd/acl.d/luci-app-natmap.json | 17 |
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"] + } + } +} |