You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/wgengine/monitor
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>
5 years ago
..
monitor.go wgengine/monitor: change API to permit multiple independent callbakcks 5 years ago
monitor_darwin.go wgengine/monitor: make the darwin link monitor work in the sandbox too 5 years ago
monitor_freebsd.go wgengine/monitor_freebsd.go: remove duplicated errcheck 5 years ago
monitor_linux.go wgengine/monitor: don't log any single-IP routes added to the tailscale table. 5 years ago
monitor_unsupported.go wgengine/monitor: make the darwin link monitor work in the sandbox too 5 years ago
monitor_windows.go wgengine/monitor: close closeHandle 5 years ago