luci-app-wifischedule: tighten acl perms
authorPaul Donald <newtwen+github@gmail.com>
Fri, 8 Nov 2024 10:33:44 +0000 (11:33 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Fri, 8 Nov 2024 10:33:44 +0000 (11:33 +0100)
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
applications/luci-app-wifischedule/root/usr/share/rpcd/acl.d/luci-app-wifischedule.json

index dbef438e1b2903495dde1f880efba53f322f8b61..c595147700f6c0b28382f69681c29d15362a9af4 100644 (file)
@@ -4,9 +4,9 @@
                "read": {
                        "uci": [ "wifi_schedule" ],
                        "file": {
-                               "/usr/bin/iwinfo": [ "read" ],
-                               "/usr/bin/wifi_schedule.sh": ["exec", "read"],
-                               "/sbin/wifi": ["read"]
+                               "/usr/bin/iwinfo": [ "stat" ],
+                               "/usr/bin/wifi_schedule.sh": ["exec"],
+                               "/sbin/wifi": ["stat"]
                        }
                },
                "write": {