diff --git a/ntoskrnl/config/cmdata.c b/ntoskrnl/config/cmdata.c index 994991cc5f7..a32909da341 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 e6f9c562926..1026c49ee78 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 bf559477d89..7071a7dd0ef 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