diff options
Diffstat (limited to 'applications/luci-app-frpc/root')
-rw-r--r-- | applications/luci-app-frpc/root/usr/share/luci/menu.d/luci-app-frpc.json | 12 | ||||
-rw-r--r-- | applications/luci-app-frpc/root/usr/share/rpcd/acl.d/luci-app-frpc.json | 15 |
2 files changed, 27 insertions, 0 deletions
diff --git a/applications/luci-app-frpc/root/usr/share/luci/menu.d/luci-app-frpc.json b/applications/luci-app-frpc/root/usr/share/luci/menu.d/luci-app-frpc.json new file mode 100644 index 0000000000..f6eaf4a9b7 --- /dev/null +++ b/applications/luci-app-frpc/root/usr/share/luci/menu.d/luci-app-frpc.json @@ -0,0 +1,12 @@ +{ + "admin/services/frpc": { + "title": "frp Client", + "action": { + "type": "view", + "path": "frpc" + }, + "depends": { + "acl": [ "luci-app-frpc" ] + } + } +} diff --git a/applications/luci-app-frpc/root/usr/share/rpcd/acl.d/luci-app-frpc.json b/applications/luci-app-frpc/root/usr/share/rpcd/acl.d/luci-app-frpc.json new file mode 100644 index 0000000000..b2bb22325a --- /dev/null +++ b/applications/luci-app-frpc/root/usr/share/rpcd/acl.d/luci-app-frpc.json @@ -0,0 +1,15 @@ +{ + "luci-app-frpc": { + "description": "Grant access to LuCI app frpc", + "read": { + "file": { + "/etc/passwd": ["read"], + "/etc/group": ["read"] + }, + "uci": ["frpc"] + }, + "write": { + "uci": ["frpc"] + } + } +} |