mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 08:04:47 +00:00
ntdll: The impersonation level in NtDuplicateToken should be taken from the SecurityQualityOfService member of ObjectAttributes if present.
This commit is contained in:
parent
4397e99585
commit
1cd222b451
|
@ -61,6 +61,16 @@ NTSTATUS WINAPI NtDuplicateToken(
|
||||||
ImpersonationLevel, TokenType, NewToken);
|
ImpersonationLevel, TokenType, NewToken);
|
||||||
dump_ObjectAttributes(ObjectAttributes);
|
dump_ObjectAttributes(ObjectAttributes);
|
||||||
|
|
||||||
|
if (ObjectAttributes && ObjectAttributes->SecurityQualityOfService)
|
||||||
|
{
|
||||||
|
SECURITY_QUALITY_OF_SERVICE *SecurityQOS = ObjectAttributes->SecurityQualityOfService;
|
||||||
|
TRACE("ObjectAttributes->SecurityQualityOfService = {%d, %d, %d, %s}\n",
|
||||||
|
SecurityQOS->Length, SecurityQOS->ImpersonationLevel,
|
||||||
|
SecurityQOS->ContextTrackingMode,
|
||||||
|
SecurityQOS->EffectiveOnly ? "TRUE" : "FALSE");
|
||||||
|
ImpersonationLevel = SecurityQOS->ImpersonationLevel;
|
||||||
|
}
|
||||||
|
|
||||||
SERVER_START_REQ( duplicate_token )
|
SERVER_START_REQ( duplicate_token )
|
||||||
{
|
{
|
||||||
req->handle = ExistingToken;
|
req->handle = ExistingToken;
|
||||||
|
|
Loading…
Reference in a new issue