From 45e4a6b27452f8f51ff12d4a8def9216ecb00200 Mon Sep 17 00:00:00 2001 From: hdzhoujie Date: Thu, 30 Mar 2023 16:33:20 +0800 Subject: [PATCH] netlink: fix netlink fd flags dump/restore failed During the restore process, netlink fd uses the flags in the NetlinkSkEntry structure to restore the file state, but during the dump process, the flags values is not saved to the structure. Signed-off-by: zhoujie Signed-off-by: hejingxian --- criu/sk-netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/criu/sk-netlink.c b/criu/sk-netlink.c index 754eed932..a219b69be 100644 --- a/criu/sk-netlink.c +++ b/criu/sk-netlink.c @@ -161,7 +161,7 @@ static int dump_one_netlink_fd(int lfd, u32 id, const struct fd_parms *p) ne.protocol = val; } - + ne.flags = p->flags; ne.fown = (FownEntry *)&p->fown; ne.opts = &skopts;