tailscale/util/winutil
Andrew Lytvynov aba4bd0c62
util/winutil: simplify dropping privileges after use (#10099)
To safely request and drop privileges, runtime.Lock/UnlockOSThread and
windows.Impersonate/RevertToSelf should be called. Add these calls to
winutil.EnableCurrentThreadPrivilege so that callers don't need to worry
about it.

Updates https://github.com/tailscale/corp/issues/15488

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
2023-11-06 11:37:37 -08:00
..
authenticode util/winutil/authenticode: add missing docs for CertSubjectError 2023-08-14 11:07:12 -06:00
policy winutil: refactor methods to get values from registry to also return (#9536) 2023-09-26 13:15:11 -04:00
mksyscall.go util/winutil: add RegisterForRestart, allowing programs to indicate their preferences to the Windows restart manager 2023-08-22 15:06:48 -06:00
svcdiag_windows.go all: use set.Set consistently instead of map[T]struct{} 2023-09-09 10:59:19 -07:00
winutil_notwindows.go winutil: refactor methods to get values from registry to also return (#9536) 2023-09-26 13:15:11 -04:00
winutil_windows_test.go go.mod, cmd/tailscaled, ipn/localapi, util/osdiag, util/winutil, util/winutil/authenticode: add Windows module list to OS-specific logs that are written upon bugreport 2023-08-03 11:33:14 -06:00
winutil_windows.go util/winutil: simplify dropping privileges after use (#10099) 2023-11-06 11:37:37 -08:00
winutil.go winutil: refactor methods to get values from registry to also return (#9536) 2023-09-26 13:15:11 -04:00
zsyscall_windows.go util/winutil: add RegisterForRestart, allowing programs to indicate their preferences to the Windows restart manager 2023-08-22 15:06:48 -06:00