genetlink: add policies for both doit and dumpit in ctrl_dumppolicy_start()
authorJakub Kicinski <kuba@kernel.org>
Fri, 4 Nov 2022 19:13:36 +0000 (12:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2022 12:30:16 +0000 (12:30 +0000)
commit92d3d9ba9bb3ab17b5bd4fd46032ced0264872c9
treeb909b44b35a1fa741e97ab8c0b770a59de2c1859
parente1a248911d0694c8f95510fcaa920c0b8e99c26c
genetlink: add policies for both doit and dumpit in ctrl_dumppolicy_start()

Separate adding doit and dumpit policies for CTRL_CMD_GETPOLICY.
This has no effect until we actually allow do and dump to come
from different sources as netlink_policy_dump_add_policy()
does deduplication.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c