summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs/controlknobs_test.go
diff options
context:
space:
mode:
authorAndrew Lytvynov <awly@tailscale.com>2023-11-06 12:37:37 -0700
committerGitHub <noreply@github.com>2023-11-06 11:37:37 -0800
commitaba4bd0c62558bb771781f5248b9f03df5c68904 (patch)
tree0b10ce68f5d7c8df0b214968fcd53f55d94b405c /control/controlknobs/controlknobs_test.go
parentef6a6e94f143dee5c715edaaa2e0fa0f6cec504b (diff)
downloadtailscale-aba4bd0c62558bb771781f5248b9f03df5c68904.tar.xz
tailscale-aba4bd0c62558bb771781f5248b9f03df5c68904.zip
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>
Diffstat (limited to 'control/controlknobs/controlknobs_test.go')
0 files changed, 0 insertions, 0 deletions