]> git.baikalelectronics.ru Git - kernel.git/commit
net: netlink: filter particular protocols from analyzers
authorDaniel Borkmann <dborkmann@redhat.com>
Thu, 5 Sep 2013 15:48:47 +0000 (17:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Sep 2013 18:43:48 +0000 (14:43 -0400)
commitaded18c746d022ca8f093b11e27ab21a63a41387
tree517e4941160237ed41c440776ac2986904fbb715
parent26784317201a0dae4dd9abe2a25ea6d1a2c53fcf
net: netlink: filter particular protocols from analyzers

Fix finer-grained control and let only a whitelist of allowed netlink
protocols pass, in our case related to networking. If later on, other
subsystems decide they want to add their protocol as well to the list
of allowed protocols they shall simply add it. While at it, we also
need to tell what protocol is in use otherwise BPF_S_ANC_PROTOCOL can
not pick it up (as it's not filled out).

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c