]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb55915efdf59f38eca7c2b30b01be992ac303a6a
tree6ec1b0dadf34348c24bdc764b2e3b5c782cc030c
parent7b85c47369798e7dca1ef4f53787c2c725b81810
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