luci-app-yggdrasil: add uci permissions to ACL rules
authorJo-Philipp Wich <jo@mein.io>
Thu, 30 Apr 2020 08:15:10 +0000 (10:15 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 30 Apr 2020 08:15:10 +0000 (10:15 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-yggdrasil/root/usr/share/rpcd/acl.d/luci-app-yggdrasil.json

index 22e00ef8faa9fefb8d0250c41ca7a678e38d08f7..ab44102950a967d68af19661e1f6f1b72909087b 100644 (file)
@@ -1,10 +1,14 @@
 {
         "luci-app-yggdrasil": {
                 "description": "Grant access to LuCI app yggdrasil",
+                "read": {
+                        "uci": [ "yggdrasil" ]
+                },
                 "write": {
                         "file": {
                                 "/usr/sbin/yggdrasilctl": [ "exec" ]
-                        }
+                        },
+                        "uci": [ "yggdrasil" ]
                 }
         }
 }