https://bugs.winehq.org/show_bug.cgi?id=39683
Bug ID: 39683 Summary: CreateRestrictedToken() uses wrong enum value for default impersonation level Product: Wine Version: 1.8-rc1 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: advapi32 Assignee: wine-bugs@winehq.org Reporter: bunglehead@gmail.com Distribution: ---
Since commit http://source.winehq.org/git/wine.git/commit/bbb29e9d4c1b55f24c60a6449903a6f..., duplicated token level is initialized like that:
--- + SECURITY_IMPERSONATION_LEVEL level = TokenImpersonationLevel; ---
TokenImpersonationLevel is a member of TOKEN_INFORMATION_CLASS, not SECURITY_IMPERSONATION_LEVEL. I'm not sure what's a right level would be in this case.
P.S. clang in -Werror mode is not impressed by this, that's how it was spotted.
https://bugs.winehq.org/show_bug.cgi?id=39683
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hans@meelstraat.net
https://bugs.winehq.org/show_bug.cgi?id=39683
--- Comment #1 from Hans Leidekker hans@meelstraat.net --- We can just set it to zero because the impersonation level is ignored by DuplicateTokenEx when the token type is TokenPrimary.
https://bugs.winehq.org/show_bug.cgi?id=39683
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |f611fcafd8610155b5fe1d97a77 | |9ed5bdc94bb96 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Fixed with f611fcafd8610155b5fe1d97a779ed5bdc94bb96.
https://bugs.winehq.org/show_bug.cgi?id=39683
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.8-rc3.