]> 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)
commit428c68e8afe9cf61aa7ae7ae22508457b6b9b3e4
treee19054eb3e5476d2db3721bfc3a3f02274463dd9
parent2ab2a0d690454c062819468e4d4ffd9c0ffddc44
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