genetlink: limit the use of validation workarounds to old ops
authorJakub Kicinski <kuba@kernel.org>
Wed, 26 Oct 2022 00:15:24 +0000 (17:15 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 27 Oct 2022 15:20:21 +0000 (08:20 -0700)
commitce48ebdd56513fa5ad9dab683a96399e00dbf464
treeb7d71f1caa4b4ea858254485ff5918b10ce1cefd
parent9f172134dde7e4f5bf4b9139f23a1e741ec1c36e
genetlink: limit the use of validation workarounds to old ops

During review of previous change another thing came up - we should
limit the use of validation workarounds to old commands.
Don't list the workarounds one by one, as we're rejecting all existing
ones. We can deal with the masking in the unlikely event that new flag
is added.

Link: https://lore.kernel.org/all/6ba9f727e555fd376623a298d5d305ad408c3d47.camel@sipsolutions.net/
Link: https://lore.kernel.org/r/20221026001524.1892202-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/netlink/genetlink.c