OSDN Git Service

rtnetlink: Convert rtnetlink_event to white list
authorVlad Yasevich <vyasevich@gmail.com>
Tue, 4 Apr 2017 13:23:41 +0000 (09:23 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Apr 2017 15:14:14 +0000 (08:14 -0700)
commit5138e86f176055e8194bf30fa2e05bc839ce1a1f
treee19054eb3e5476d2db3721bfc3a3f02274463dd9
parent589c49cbf9674808fd4ac9b7c17155abc0686f86
rtnetlink: Convert rtnetlink_event to white list

The rtnetlink_event currently functions as a blacklist where
we block cerntain netdev events from being sent to user space.
As a result, events have been added to the system that userspace
probably doesn't care about.

This patch converts the implementation to the white list so that
newly events would have to be specifically added to the list to
be sent to userspace.  This would force new event implementers to
consider whether a given event is usefull to user space or if it's
just a kernel event.

Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c