tailscale/util/winutil
Aaron Klotz 855f79fad7 cmd/tailscaled, util/winutil: changes to process and token APIs in winutil
This PR changes the internal getTokenInfo function to use generics.
I also removed our own implementations for obtaining a token's user
and primary group in favour of calling the ones now available in
x/sys/windows.

Furthermore, I added two new functions for working with tokens, logon
session IDs, and Terminal Services / RDP session IDs.

I modified our privilege enabling code to allow enabling of multiple
privileges via one single function call.

Finally, I added the ProcessImageName function and updated the code in
tailscaled_windows.go to use that instead of directly calling the
underlying API.

All of these changes will be utilized by subsequent PRs pertaining to
this issue.

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

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2023-11-15 12:07:19 -07: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.go winutil: refactor methods to get values from registry to also return (#9536) 2023-09-26 13:15:11 -04: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.go cmd/tailscaled, util/winutil: changes to process and token APIs in winutil 2023-11-15 12:07:19 -07: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
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