mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-26 07:38:55 +00:00
* fix(ipc): authenticate Windows named pipe servers Restrict main and service pipe instance creation and authenticate the connected server before exchanging IPC data. Open clients with data access that excludes FILE_CREATE_PIPE_INSTANCE. Require SYSTEM ownership for service channels. For main IPC, also accept a same-user server with a restricted DACL, matching session and executable, and sufficient elevation. This includes the UI hosting main IPC while the service is unavailable, without relying on installation or service config. Elevated clients reject non-elevated servers, and SYSTEM clients reject user-owned pipes. New clients reject old permissive listeners until those processes restart on the fixed version. Add native Windows regression tests for instance-creation permissions, DACL rejection before application data, and normal client communication. Signed-off-by: fufesou <linlong1266@gmail.com> * refactor(ipc): clarify Windows pipe security policy Signed-off-by: fufesou <linlong1266@gmail.com> * test(ipc): bound the Windows server rejection test Signed-off-by: fufesou <linlong1266@gmail.com> * test(ipc): bound the complete Windows client communication test Signed-off-by: fufesou <linlong1266@gmail.com> * fix(windows): keep portable GUI alive on IPC startup failure Only attempt GUI fallback hosting when the main IPC pipe is absent. Bind its listener before marking hosting active or starting rendezvous, and return on bind failure without terminating the GUI. Preserve IPC authentication and explicit server-process behavior. Cover rejected listeners, bind collisions, and standalone IPC communication with Windows regression tests. Signed-off-by: fufesou <linlong1266@gmail.com> * refactor(windows): simplify portable IPC startup fallback Rely on exclusive listener creation instead of a separate pipe-presence probe. Keep GUI bind failures recoverable and require a successful bind before starting host services. Retain the subprocess regression for bind-failure process survival, removing redundant GUI tests and their helper parameters and delay. Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>