Commit 1eb22125 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

unix: restore file params and sockopts for all standalone sockets

We can have a situation, when a socket is bound, but isn't listen yet.

I can't find a situation, when we should not restore parameters.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4c60b22d
...@@ -688,14 +688,13 @@ static int open_unixsk_standalone(struct unix_sk_info *ui) ...@@ -688,14 +688,13 @@ static int open_unixsk_standalone(struct unix_sk_info *ui)
pr_perror("Can't make usk listen"); pr_perror("Can't make usk listen");
return -1; return -1;
} }
}
if (rst_file_params(sk, ui->ue->fown, ui->ue->flags)) if (rst_file_params(sk, ui->ue->fown, ui->ue->flags))
return -1; return -1;
if (restore_socket_opts(sk, ui->ue->opts))
return -1;
} if (restore_socket_opts(sk, ui->ue->opts))
return -1;
return sk; return sk;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment