tailscale/net/dns
David Crawshaw 6b9f8208f4 net/dns: do not run wsl.exe as LocalSystem
It doesn't work. It needs to run as the user.

	https://github.com/microsoft/WSL/issues/4803

The mechanism for doing this was extracted from:

	https://web.archive.org/web/20101009012531/http://blogs.msdn.com/b/winsdk/archive/2009/07/14/launching-an-interactive-process-from-windows-service-in-windows-vista-and-later.aspx

While here, we also reclaculate WSL distro set on SetDNS.
This accounts for:

	1. potential inability to access wsl.exe on startup
	2. WSL being installed while Tailscale is running
	3. A new WSL distrobution being installed

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
2021-06-30 10:11:33 -07:00
..
resolver net/dns/resolver: fmt item 2021-06-27 23:57:55 -07:00
config.go net/dns: replace AuthoritativeSuffixes with nil Route entries. 2021-05-18 14:15:17 -07:00
debian_resolvconf.go net/dns: add GOOS build tags 2021-04-29 21:34:55 -07:00
direct_test.go net/dns: factor directManager out over an FS interface 2021-06-28 14:18:15 -07:00
direct.go net/dns: set WSL /etc/resolv.conf 2021-06-28 14:18:15 -07:00
flush_windows.go Move DNS flush logic to net/dns. 2021-03-25 17:40:52 -07:00
ini_test.go net/dns: set WSL /etc/resolv.conf 2021-06-28 14:18:15 -07:00
ini.go net/dns: set WSL /etc/resolv.conf 2021-06-28 14:18:15 -07:00
manager_default.go net/dns: return error from NewOSManager, use it to initialize NM. 2021-04-12 15:51:37 -07:00
manager_freebsd.go net/dns: factor directManager out over an FS interface 2021-06-28 14:18:15 -07:00
manager_linux.go net/dns: factor directManager out over an FS interface 2021-06-28 14:18:15 -07:00
manager_openbsd.go net/dns: factor directManager out over an FS interface 2021-06-28 14:18:15 -07:00
manager_test.go net/dns{,/resolver}: refactor DNS forwarder, send out of right link on macOS/iOS 2021-06-23 16:04:10 -07:00
manager_windows.go net/dns: do not run wsl.exe as LocalSystem 2021-06-30 10:11:33 -07:00
manager.go net/dns{,/resolver}: refactor DNS forwarder, send out of right link on macOS/iOS 2021-06-23 16:04:10 -07:00
nm.go staticcheck.conf: turn off noisy lint errors 2021-06-18 15:48:20 -07:00
noop.go net/dns: return error from NewOSManager, use it to initialize NM. 2021-04-12 15:51:37 -07:00
openresolv.go net/dns: add GOOS build tags 2021-04-29 21:34:55 -07:00
osconfig.go net/dns: make debian_resolvconf correctly clear DNS configs. 2021-04-20 15:51:14 -07:00
registry_windows.go wgengine/router/dns: move to net/dns. 2021-03-25 16:25:30 -07:00
resolvconf-workaround.sh net/dns: also include 'tail' and 'base' files when fixing up resolv.conf. 2021-04-10 23:01:11 -07:00
resolvconf.go net/dns: add GOOS build tags 2021-04-29 21:34:55 -07:00
resolved.go net/dns: factor directManager out over an FS interface 2021-06-28 14:18:15 -07:00
wsl_windows.go net/dns: do not run wsl.exe as LocalSystem 2021-06-30 10:11:33 -07:00