From 201e89856c09b1dac17cafdc0f9cd922dcfeeb74 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 13 Sep 2018 22:57:51 +0300 Subject: [PATCH] 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 Signed-off-by: Andrei Vagin --- criu/sk-inet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/criu/sk-inet.c b/criu/sk-inet.c index a7b6399e9..3b4289474 100644 --- a/criu/sk-inet.c +++ b/criu/sk-inet.c @@ -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; }