tailscale/util/winutil
Aaron Klotz d7962e3bcf ipn/ipnserver, util/winutil: update workaround for os/user.LookupId failures on Windows to reject SIDs from deleted/invalid security principals.
Our current workaround made the user check too lax, thus allowing deleted
users. This patch adds a helper function to winutil that checks that the
uid's SID represents a valid Windows security principal.

Now if `lookupUserFromID` determines that the SID is invalid, we simply
propagate the error.

Updates https://github.com/tailscale/tailscale/issues/869

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2022-02-02 15:01:28 -07:00
..
vss utils/winutil utils/winutil/vss: add utility function for extracting data from Windows System Restore Point backups. 2021-10-18 15:48:42 -06:00
winrestore_windows.go utils/winutil utils/winutil/vss: add utility function for extracting data from Windows System Restore Point backups. 2021-10-18 15:48:42 -06:00
winutil.go ipn/ipnserver, util/winutil: update workaround for os/user.LookupId failures on Windows to reject SIDs from deleted/invalid security principals. 2022-02-02 15:01:28 -07:00
winutil_notwindows.go ipn/ipnserver, util/winutil: update workaround for os/user.LookupId failures on Windows to reject SIDs from deleted/invalid security principals. 2022-02-02 15:01:28 -07:00
winutil_windows.go ipn/ipnserver, util/winutil: update workaround for os/user.LookupId failures on Windows to reject SIDs from deleted/invalid security principals. 2022-02-02 15:01:28 -07:00