Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/user: make Windows user lookup treat well-known groups as valid ac… #56823

Closed
wants to merge 1 commit into from

Conversation

dblohm7
Copy link

@dblohm7 dblohm7 commented Nov 17, 2022

…counts

This change modifies account querying to consider both syscall.SidTypeUser and syscall.SidTypeWellKnownGroup types to be valid for user accounts.

Some built-in Windows accounts such as 'NT AUTHORITY\SYSTEM' are treated by the OS as users, but are internally classified by the OS as syscall.SidTypeWellKnownGroup instead of syscall.SidTypeUser.

Fixes #49509

…counts

This change modifies account querying to consider both syscall.SidTypeUser
and syscall.SidTypeWellKnownGroup types to be valid for user accounts.

Some built-in Windows accounts such as 'NT AUTHORITY\SYSTEM' are treated by
the OS as users, but are internally classified by the OS as
syscall.SidTypeWellKnownGroup instead of syscall.SidTypeUser.

Fixes golang#49509
@google-cla
Copy link

google-cla bot commented Nov 17, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@dblohm7
Copy link
Author

dblohm7 commented Nov 17, 2022

CLA check is using the wrong email. I'll push directly to Gerrit instead.

@dblohm7 dblohm7 closed this Nov 17, 2022
@dblohm7 dblohm7 deleted the lookup-windows branch November 17, 2022 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

os/user: on Windows, user.LookupId fails with special built-in SIDs
1 participant