]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net/namespace: Update rtnl_net_dumpid for strict data checking
authorDavid Ahern <dsahern@gmail.com>
Mon, 8 Oct 2018 03:16:38 +0000 (20:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 17:39:05 +0000 (10:39 -0700)
commitf80f14c3649f491e23712a30f86b20b6069fb72e
tree6251b6f21448a3433be5579ef7f0f2eb909889f3
parent9632d47f6a88f7f075347b66b88c60df7e9eae05
net/namespace: Update rtnl_net_dumpid for strict data checking

Update rtnl_net_dumpid for strict data checking. If the flag is set,
the dump request is expected to have an rtgenmsg struct as the header
which has the family as the only element. No data may be appended.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c