mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-04 16:25:31 +00:00
unix: don't restore name for unix stream established sockets
A stream socket may be bound, but is not listen yet. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
434c107d7c
commit
e5a8065713
@@ -546,7 +546,7 @@ static int bind_unix_sk(int sk, struct unix_sk_info *ui)
|
|||||||
{
|
{
|
||||||
struct sockaddr_un addr;
|
struct sockaddr_un addr;
|
||||||
|
|
||||||
if ((ui->ue->type == SOCK_STREAM) && (ui->ue->state != TCP_LISTEN))
|
if ((ui->ue->type == SOCK_STREAM) && (ui->ue->state == TCP_ESTABLISHED))
|
||||||
/*
|
/*
|
||||||
* FIXME this can be done, but for doing this properly we
|
* FIXME this can be done, but for doing this properly we
|
||||||
* need to bind socket to its name, then rename one to
|
* need to bind socket to its name, then rename one to
|
||||||
|
Reference in New Issue
Block a user