OSDN Git Service

ip6_tunnel: better validate user provided tunnel names
authorEric Dumazet <edumazet@google.com>
Thu, 5 Apr 2018 13:39:30 +0000 (06:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Apr 2018 19:16:15 +0000 (15:16 -0400)
commitdb7a65e3ab78e5b1c4b17c0870ebee35a4ee3257
tree08760c2cc85ab1d65a4a8ac1c1c22d490d27325a
parent5f42df013b8bc1b6511af7a04bf93b014884ae2a
ip6_tunnel: better validate user provided tunnel names

Use valid_name() to make sure user does not provide illegal
device name.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c