Skip to content
Commit 73bfd370 authored by Daniel Borkmann's avatar Daniel Borkmann Committed by David S. Miller
Browse files

netlink: only do not deliver to tap when both sides are kernel sks



We should also deliver packets to nlmon devices when we are in
netlink_unicast_kernel(), and only one of the {src,dst} sockets
is user sk and the other one kernel sk. That's e.g. the case in
netlink diag, netlink route, etc. Still, forbid to deliver messages
from kernel to kernel sks.

Signed-off-by: default avatarDaniel Borkmann <dborkman@redhat.com>
Signed-off-by: default avatarJakub Zawadzki <darkjames-ws@darkjames.pl>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 89ba52bd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment