fix: preserve trusted-device grants in Config2

Add fallible grant persistence with file locking and atomic replacement. Preserve the persisted grant state during ordinary settings writes so stale configuration snapshots cannot restore revoked devices.

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou committed 2026-10-12 21:59:19 -07:00
1 parent 229b904508
commit a2df328d0b
3 files changed
+204 -2

No files matched your search

+3
View File
@@ -90,3 +90,6 @@ webrtc = "0.13.0" # keep in lockstep with [dependencies] webrtc (rustc 1.75 pin,
[target.'cfg(target_os = "linux")'.dependencies]
users = { version = "0.11" }
x11 = "2.21"
[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.61", features = ["Win32_Storage_FileSystem", "Win32_System_IO", "Win32_Security"] }