Added patch to implement TokenIntegrityLevel stub in NtSetInformationToken.

This commit is contained in:
Sebastian Lackner 2017-05-04 21:31:38 +02:00
parent 3aa965e97f
commit 9985fe9035
3 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,28 @@
From 01043db0fa1893a26c59f7bc2972aba437aeb063 Mon Sep 17 00:00:00 2001
From: Andrew Wesie <awesie@gmail.com>
Date: Wed, 3 May 2017 15:00:16 -0500
Subject: ntdll: TokenIntegrityLevel stub in NtSetInformationToken.
Signed-off-by: Andrew Wesie <awesie@gmail.com>
---
dlls/ntdll/nt.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index b0473a5ffd9..93554e929be 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -660,6 +660,10 @@ NTSTATUS WINAPI NtSetInformationToken(
FIXME("handling of TokenSessionId not implemented\n");
ret = STATUS_SUCCESS;
break;
+ case TokenIntegrityLevel:
+ FIXME("TokenIntegrityLevel stub!\n");
+ ret = STATUS_SUCCESS;
+ break;
default:
FIXME("unimplemented class %u\n", TokenInformationClass);
break;
--
2.12.2

View File

@ -1 +1,2 @@
Fixes: [32907] Return success for TokenSessionId in NtSetInformationToken
Fixes: Implement TokenIntegrityLevel stub in NtSetInformationToken

View File

@ -5595,8 +5595,10 @@ fi
# |
if test "$enable_ntdll_NtSetInformationToken" -eq 1; then
patch_apply ntdll-NtSetInformationToken/0001-ntdll-Return-success-for-TokenSessionId-in-NtSetInfo.patch
patch_apply ntdll-NtSetInformationToken/0002-ntdll-TokenIntegrityLevel-stub-in-NtSetInformationTo.patch
(
printf '%s\n' '+ { "Michael Müller", "ntdll: Return success for TokenSessionId in NtSetInformationToken.", 1 },';
printf '%s\n' '+ { "Andrew Wesie", "ntdll: TokenIntegrityLevel stub in NtSetInformationToken.", 1 },';
) >> "$patchlist"
fi