]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0625dac39d8ad0b1e16bea13398103cd1e1eeca4
treee19054eb3e5476d2db3721bfc3a3f02274463dd9
parentc24d50fc1928f17caf706f0e726eb22b268581e4
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