Brad Fitzpatrick
0d52674a84
net/tstun: diagnose /dev/net/tun fd leak, give better failure message
...
Updates #5029
Change-Id: Ibee5e0c9076fe764eb5d856d5ef8b09f4d0e2921
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-07-16 14:21:56 -07:00
Maisem Ali
1f006025c2
net/tstun: fix build on arm
...
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2021-08-18 15:28:14 -07:00
Brad Fitzpatrick
833200da6f
net/tstun: don't exec uname -r on Linux in TUN failure diagnostics
...
Fixes https://twitter.com/zekjur/status/1425557520513486848
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-08-16 12:18:40 -07:00
Brad Fitzpatrick
e804ab29fd
net/tstun: move TUN failure diagnostics to OS-specific files
...
Mostly so the Linux one can use Linux-specific stuff in package
syscall and not use os/exec for uname for portability.
But also it helps deps a tiny bit on iOS.
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-08-16 11:24:25 -07:00