From bb3e1b4073eb31c30ab0bb01588fef5c58be42ab Mon Sep 17 00:00:00 2001 From: Sebastian Eydam Date: Thu, 26 Mar 2026 17:27:51 +0100 Subject: [PATCH] vmm: stop removing the UNIX socket file When doing a local migration using a UNIX socket, we removed the UNIX socket file after accepting the connection. The VMM does not own this socket file, which makes this an unsafe operation. Thus, we stop doing that. On-behalf-of: SAP sebastian.eydam@sap.com Signed-off-by: Sebastian Eydam --- vmm/src/migration_transport.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/vmm/src/migration_transport.rs b/vmm/src/migration_transport.rs index 820501a3e..ddc2337b5 100644 --- a/vmm/src/migration_transport.rs +++ b/vmm/src/migration_transport.rs @@ -73,11 +73,6 @@ pub(crate) fn receive_migration_socket( )) })?; - // Remove the UNIX socket file after accepting the connection - std::fs::remove_file(&path).map_err(|e| { - MigratableError::MigrateReceive(anyhow!("Error removing UNIX socket file: {e}")) - })?; - Ok(SocketStream::Unix(socket)) } }