diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2018-06-13 15:09:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-15 02:10:19 +0200 |
commit | 3e1bc8bf974e2d4e7beb842a4c801c2542eff3bd (patch) | |
tree | 5de6f40851edb8e21f64c182698b3b928db1b8c5 /net/wireless/scan.c | |
parent | l2tp: only accept PPP sessions in pppol2tp_connect() (diff) | |
download | linux-3e1bc8bf974e2d4e7beb842a4c801c2542eff3bd.tar.xz linux-3e1bc8bf974e2d4e7beb842a4c801c2542eff3bd.zip |
l2tp: prevent pppol2tp_connect() from creating kernel sockets
If 'fd' is negative, l2tp_tunnel_create() creates a tunnel socket using
the configuration passed in 'tcfg'. Currently, pppol2tp_connect() sets
the relevant fields to zero, tricking l2tp_tunnel_create() into setting
up an unusable kernel socket.
We can't set 'tcfg' with the required fields because there's no way to
get them from the current connect() parameters. So let's restrict
kernel sockets creation to the netlink API, which is the original use
case.
Fixes: 789a4a2c61d8 ("l2tp: Add support for static unmanaged L2TPv3 tunnels")
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wireless/scan.c')
0 files changed, 0 insertions, 0 deletions