luci-app-frps: allow /etc/config/frps, /etc/group and /etc/passwd access
authorJo-Philipp Wich <jo@mein.io>
Tue, 14 Apr 2020 15:51:09 +0000 (17:51 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 14 Apr 2020 15:51:09 +0000 (17:51 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-frps/root/usr/share/rpcd/acl.d/luci-app-frps.json

index 8c0f8f5a06e9a8eaa9a71f6ebb62910d01537486..b065945b351dd7a23ab77fa5bf9e255fae7f0bb0 100644 (file)
@@ -1,6 +1,13 @@
 {
        "luci-app-frps": {
                "description": "Grant access to LuCI app frps",
+               "read": {
+                       "file": {
+                               "/etc/group": [ "read" ],
+                               "/etc/passwd": [ "read" ]
+                       },
+                       "uci": ["frps"]
+               },
                "write": {
                        "uci": ["frps"]
                }