mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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 <sebastian.eydam@cyberus-technology.de>
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user