net: Set strict_start_type for routes and rules
authorDavid Ahern <dsahern@gmail.com>
Wed, 22 May 2019 19:07:43 +0000 (12:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 00:50:24 +0000 (17:50 -0700)
commit75425657fe3ad853b300976966d8fafa3f209b89
tree6ec1b0dadf34348c24bdc764b2e3b5c782cc030c
parente38f7cbd36e4d8ef6c1c56f9643adf8898cb3cb9
net: Set strict_start_type for routes and rules

New userspace on an older kernel can send unknown and unsupported
attributes resulting in an incompelete config which is almost
always wrong for routing (few exceptions are passthrough settings
like the protocol that installed the route).

Set strict_start_type in the policies for IPv4 and IPv6 routes and
rules to detect new, unsupported attributes and fail the route add.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/fib_rules.h
net/ipv4/fib_frontend.c
net/ipv6/route.c