]> 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)
commit8b7c6503ac04280d138db223c789ccc649d1a53e
tree6ec1b0dadf34348c24bdc764b2e3b5c782cc030c
parent0c404ea1402fe83f6b7ed25549c9d1631e049b89
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