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/tstest/integration
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>
2 years ago
..
testcontrol all: fix spelling mistakes 2 years ago
vms all: remove old +build tags 2 years ago
gen_deps.go all: remove old +build tags 2 years ago
integration.go refactor: move from io/ioutil to io and os packages 2 years ago
integration_test.go safesocket: remove the IPN protocol support 2 years ago
tailscaled_deps_test_darwin.go cmd/tailscaled: unify the two Windows paths + separate IPN server path 2 years ago
tailscaled_deps_test_freebsd.go cmd/tailscaled: unify the two Windows paths + separate IPN server path 2 years ago
tailscaled_deps_test_linux.go cmd/tailscaled: unify the two Windows paths + separate IPN server path 2 years ago
tailscaled_deps_test_openbsd.go cmd/tailscaled: unify the two Windows paths + separate IPN server path 2 years ago
tailscaled_deps_test_windows.go cmd/tailscaled: add a special command to tailscaled's Windows service for removing WinTun 2 years ago