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 <zhoujie133@huawei.com>
Signed-off-by: hejingxian <hejingxian@huawei.com>
This commit is contained in:
hdzhoujie 2023-03-30 16:33:20 +08:00 committed by Andrei Vagin
parent 6c728df1dc
commit 45e4a6b274

View file

@ -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;