tailscale/tstest
Aaron Klotz 98f21354c6 cmd/tailscaled: add a special command to tailscaled's Windows service for removing WinTun
WinTun is installed lazily by tailscaled while it is running as LocalSystem.
Based upon what we're seeing in bug reports and support requests, removing
WinTun as a lesser user may fail under certain Windows versions, even when that
user is an Administrator.

By adding a user-defined command code to tailscaled, we can ask the service to
do the removal on our behalf while it is still running as LocalSystem.

* The uninstall code is basically the same as it is in corp;
* The command code will be sent as a service control request and is protected by
  the SERVICE_USER_DEFINED_CONTROL access right, which requires Administrator.

I'll be adding follow-up patches in corp to engage this functionality.

Updates https://github.com/tailscale/tailscale/issues/6433

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2022-12-07 12:12:02 -06:00
..
archtest all: remove old +build tags 2022-11-04 07:25:42 -07:00
integration cmd/tailscaled: add a special command to tailscaled's Windows service for removing WinTun 2022-12-07 12:12:02 -06:00
iosdeps all: remove old +build tags 2022-11-04 07:25:42 -07:00
jsdeps all: remove old +build tags 2022-11-04 07:25:42 -07:00
natlab tstest/natlab: add Firewall.Reset method to drop firewall state 2022-10-12 10:16:16 -07:00
tools all: remove old +build tags 2022-11-04 07:25:42 -07:00
allocs.go util/testingutil: new package with MinAllocsPerRun 2021-10-28 12:48:37 -07:00
clock.go all: fix spelling mistakes 2022-09-29 13:36:13 -07:00
log_test.go tstest: rename LogListener to LogLineTracker 2020-09-04 08:09:56 -07:00
log.go ipn/ipnlocal: fix test flake when we log after a test completes 2022-11-02 16:17:59 -04:00
resource.go tstest: do not error if the there are fewer goroutines than at start 2022-07-29 09:53:01 -07:00
tstest.go tstest: add WaitFor helper 2021-04-29 14:43:46 -07:00