mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 11:04:35 +00:00
inet: raw -- Add raw sockets into can_dump_inet_sk
So they would pass this check. Note because we didn't allow raw socks in can_dump_ipproto this routine won't be reached and it's safe to modify it this way without breaking existing tests. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
parent
76b2d8e93b
commit
201e89856c
1 changed files with 2 additions and 2 deletions
|
|
@ -155,9 +155,9 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (sk->type != SOCK_STREAM) {
|
||||
if (sk->type != SOCK_STREAM && sk->type != SOCK_RAW) {
|
||||
pr_err("Can't dump %d inet socket %x. "
|
||||
"Only stream and dgram are supported.\n",
|
||||
"Only stream, dgram and raw are supported.\n",
|
||||
sk->type, sk->sd.ino);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue