tailscale/wgengine
Brad Fitzpatrick 14dc790137 wgengine/monitor: make the darwin link monitor work in the sandbox too
Previously tailscaled on macOS was running "/sbin/route monitor" as a
child process, but child processes aren't allowed in the Network
Extension / App Store sandbox. Instead, just do what "/sbin/route monitor"
itself does: unix.Socket(unix.AF_ROUTE, unix.SOCK_RAW, 0) and read that.

We also parse it now, but don't do anything with the parsed results yet.

We will over time, as we have with Linux netlink messages over time.

Currently any message is considered a signal to poll and see what changed.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-02-28 21:14:51 -08:00
..
filter wgengine/filter: use IPSet for localNets instead of prefixes. 2021-02-22 14:51:22 -08:00
magicsock wgengine/magicsock: remove TODO about endpoints-over-DERP 2021-02-24 21:34:31 -08:00
monitor wgengine/monitor: make the darwin link monitor work in the sandbox too 2021-02-28 21:14:51 -08:00
netstack wgengine/netstack: start SOCKS5 server in netstack mode 2021-02-26 13:44:49 -08:00
router wgengine/router: correctly read IPv6 routes when diffing. 2021-02-24 20:41:56 -08:00
tsdns wgengine/tsdns: skip test that requires local IPv6 when IPv6 unavailable 2021-02-16 10:50:37 -08:00
tstun wgengine/filter: use IPSet for localNets instead of prefixes. 2021-02-22 14:51:22 -08:00
wgcfg ipn/ipnlocal: only filter out default routes when computing the local wg config. 2021-02-24 20:41:56 -08:00
wglog wgengine/wglog: drop 1/s "interface is up" messages. 2021-02-23 09:01:58 -08:00
winnet wgengine/winnet: don't build on non-windows 2021-02-09 21:09:24 -08:00
ifstatus_noop.go wgengine: make NewUserspaceEngine wait for TUN interface to be up on Windows 2021-02-25 07:58:17 -08:00
ifstatus_windows.go wgengine: make NewUserspaceEngine wait for TUN interface to be up on Windows 2021-02-25 07:58:17 -08:00
pendopen.go ipn: split LocalBackend off into new ipn/ipnlocal package 2021-02-04 14:04:23 -08:00
userspace.go wgengine: let LinkMonitor be passed in to NewUserspaceEngine 2021-02-27 21:55:06 -08:00
userspace_test.go all: move wgcfg from wireguard-go 2021-01-29 12:52:56 -08:00
watchdog.go types/netmap: split controlclient.NetworkMap off into its own leaf package 2021-02-05 16:18:52 -08:00
watchdog_test.go cmd/tailscaled, wgengine/netstack: add start of gvisor userspace netstack work 2021-01-11 09:31:14 -08:00
wgengine.go types/netmap: split controlclient.NetworkMap off into its own leaf package 2021-02-05 16:18:52 -08:00