net: bridge: Set strict_start_type at two policies
authorPetr Machata <petrm@nvidia.com>
Thu, 2 Feb 2023 17:59:19 +0000 (18:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Feb 2023 08:48:25 +0000 (08:48 +0000)
commitc00041cf1cb82fcc8002454c8c1d80bd7e9b7e3e
treeafbbf684b81bec7734dfe99971d7a7f518a40d7c
parent8b7018fa7177aa4358f270fc8db36e59c55a6c21
net: bridge: Set strict_start_type at two policies

Make any attributes newly-added to br_port_policy or vlan_tunnel_policy
parsed strictly, to prevent userspace from passing garbage. Note that this
patchset only touches the former policy. The latter was adjusted for
completeness' sake. There do not appear to be other _deprecated calls
with non-NULL policies.

Suggested-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c
net/bridge/br_netlink_tunnel.c