mirror of
https://github.com/tailscale/tailscale.git
synced 2026-06-14 21:06:44 +08:00
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> |
||
|---|---|---|
| .. | ||
| authenticode | ||
| policy | ||
| mksyscall.go | ||
| svcdiag_windows.go | ||
| winutil_notwindows.go | ||
| winutil_windows_test.go | ||
| winutil_windows.go | ||
| winutil.go | ||
| zsyscall_windows.go | ||