Skip to content
Commit 1bd4978a authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

tun: honor IFF_UP in tun_get_user()



If a tun interface is turned down, we should not allow packet injection
into the kernel.

Kernel does not send packets to the tun already.

TUNATTACHFILTER can not be used as only tun_net_xmit() is taking care
of it.

Reported-by: default avatarCurt Wohlgemuth <curtw@google.com>
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 715f504b
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