From 9985fe9035cefa46b40b3bcf7da517420bafc803 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Thu, 4 May 2017 21:31:38 +0200 Subject: [PATCH] Added patch to implement TokenIntegrityLevel stub in NtSetInformationToken. --- ...rityLevel-stub-in-NtSetInformationTo.patch | 28 +++++++++++++++++++ .../ntdll-NtSetInformationToken/definition | 1 + patches/patchinstall.sh | 2 ++ 3 files changed, 31 insertions(+) create mode 100644 patches/ntdll-NtSetInformationToken/0002-ntdll-TokenIntegrityLevel-stub-in-NtSetInformationTo.patch diff --git a/patches/ntdll-NtSetInformationToken/0002-ntdll-TokenIntegrityLevel-stub-in-NtSetInformationTo.patch b/patches/ntdll-NtSetInformationToken/0002-ntdll-TokenIntegrityLevel-stub-in-NtSetInformationTo.patch new file mode 100644 index 00000000..ea5848bb --- /dev/null +++ b/patches/ntdll-NtSetInformationToken/0002-ntdll-TokenIntegrityLevel-stub-in-NtSetInformationTo.patch @@ -0,0 +1,28 @@ +From 01043db0fa1893a26c59f7bc2972aba437aeb063 Mon Sep 17 00:00:00 2001 +From: Andrew Wesie +Date: Wed, 3 May 2017 15:00:16 -0500 +Subject: ntdll: TokenIntegrityLevel stub in NtSetInformationToken. + +Signed-off-by: Andrew Wesie +--- + 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 + diff --git a/patches/ntdll-NtSetInformationToken/definition b/patches/ntdll-NtSetInformationToken/definition index 3a69e4a9..bee8b6d4 100644 --- a/patches/ntdll-NtSetInformationToken/definition +++ b/patches/ntdll-NtSetInformationToken/definition @@ -1 +1,2 @@ Fixes: [32907] Return success for TokenSessionId in NtSetInformationToken +Fixes: Implement TokenIntegrityLevel stub in NtSetInformationToken diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 7a236c28..44d1e9a7 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -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