]> git.baikalelectronics.ru Git - 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)
commit4a3a386f5717311d9d51dc38c59cd1571efc5f03
tree6251b6f21448a3433be5579ef7f0f2eb909889f3
parent983cf3ee8adb0d4951a5d8c9022af2f1398db459
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