https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b9423f07d9900a0dc651bb...
commit b9423f07d9900a0dc651bb3b261468b710390b91 Author: Pierre Schweitzer pierre@reactos.org AuthorDate: Sat Oct 27 11:44:19 2018 +0200 Commit: Pierre Schweitzer pierre@reactos.org CommitDate: Sat Oct 27 12:01:38 2018 +0200
[NTOSKRNL] Add support for the ObUnsecureGlobalNames registry key --- ntoskrnl/config/cmdata.c | 8 ++++++++ ntoskrnl/include/internal/ob.h | 2 ++ ntoskrnl/ob/obname.c | 3 +++ 3 files changed, 13 insertions(+)
diff --git a/ntoskrnl/config/cmdata.c b/ntoskrnl/config/cmdata.c index 994991cc5f..a32909da34 100644 --- a/ntoskrnl/config/cmdata.c +++ b/ntoskrnl/config/cmdata.c @@ -586,6 +586,14 @@ INIT_FUNCTION CM_SYSTEM_CONTROL_VECTOR CmControlVector[] = NULL },
+ { + L"Session Manager\Kernel", + L"ObUnsecureGlobalNames", + ObpUnsecureGlobalNamesBuffer, + &ObpUnsecureGlobalNamesLength, + NULL + }, + { L"Session Manager\I/O System", L"CountOperations", diff --git a/ntoskrnl/include/internal/ob.h b/ntoskrnl/include/internal/ob.h index e6f9c56292..1026c49ee7 100644 --- a/ntoskrnl/include/internal/ob.h +++ b/ntoskrnl/include/internal/ob.h @@ -613,6 +613,8 @@ extern BOOLEAN IoCountOperations; extern ALIGNEDNAME ObpDosDevicesShortNamePrefix; extern ALIGNEDNAME ObpDosDevicesShortNameRoot; extern UNICODE_STRING ObpDosDevicesShortName; +extern WCHAR ObpUnsecureGlobalNamesBuffer[128]; +extern ULONG ObpUnsecureGlobalNamesLength;
// // Inlined Functions diff --git a/ntoskrnl/ob/obname.c b/ntoskrnl/ob/obname.c index bf559477d8..7071a7dd0e 100644 --- a/ntoskrnl/ob/obname.c +++ b/ntoskrnl/ob/obname.c @@ -29,6 +29,9 @@ UNICODE_STRING ObpDosDevicesShortName = (PWSTR)&ObpDosDevicesShortNamePrefix };
+WCHAR ObpUnsecureGlobalNamesBuffer[128] = {0}; +ULONG ObpUnsecureGlobalNamesLength = sizeof(ObpUnsecureGlobalNamesBuffer); + /* PRIVATE FUNCTIONS *********************************************************/
NTSTATUS