1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00

wow64: In wow64_NtSetInformationToken forward TokenIntegrityLevel.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56725
This commit is contained in:
Fabian Maurer 2024-05-25 06:26:23 +02:00 committed by Alexandre Julliard
parent 08c0978f0b
commit 6c5d17af07
2 changed files with 17 additions and 0 deletions

View File

@ -521,6 +521,18 @@ NTSTATUS WINAPI wow64_NtSetInformationToken( UINT *args )
switch (class)
{
case TokenIntegrityLevel: /* TOKEN_MANDATORY_LABEL */
if (len >= sizeof(TOKEN_MANDATORY_LABEL32))
{
TOKEN_MANDATORY_LABEL32 *label32 = ptr;
TOKEN_MANDATORY_LABEL label;
label.Label.Sid = ULongToPtr( label32->Label.Sid );
label.Label.Attributes = label32->Label.Attributes;
return NtSetInformationToken( handle, class, &label, sizeof(label) );
}
else return STATUS_INFO_LENGTH_MISMATCH;
case TokenSessionId: /* ULONG */
return NtSetInformationToken( handle, class, ptr, len );

View File

@ -367,6 +367,11 @@ typedef struct
DWORD Attributes;
} SID_AND_ATTRIBUTES32;
typedef struct
{
SID_AND_ATTRIBUTES32 Label;
} TOKEN_MANDATORY_LABEL32;
typedef struct
{
ULONG DefaultDacl;