]> 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)
commitb92f17cf5f994da6888ad270e3becd01a6b4f1be
tree517e4941160237ed41c440776ac2986904fbb715
parent72ddc9f0f4d4c812c2d1ddd5fb5751fd7f64b81e
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