]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/netlink/af_netlink.c
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)
commit5ffd5cddd4d353fe18c01b89397dcad02035bb95
tree517e4941160237ed41c440776ac2986904fbb715
parent2e032852245b3dcfe5461d7353e34eb6da095ccf
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