[NTOSKRNL] Add support for the ObUnsecureGlobalNames registry key
authorPierre Schweitzer <pierre@reactos.org>
Sat, 27 Oct 2018 09:44:19 +0000 (11:44 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 27 Oct 2018 10:01:38 +0000 (12:01 +0200)
ntoskrnl/config/cmdata.c
ntoskrnl/include/internal/ob.h
ntoskrnl/ob/obname.c

index 994991c..a32909d 100644 (file)
@@ -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",
index e6f9c56..1026c49 100644 (file)
@@ -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
index bf55947..7071a7d 100644 (file)
@@ -29,6 +29,9 @@ UNICODE_STRING ObpDosDevicesShortName =
     (PWSTR)&ObpDosDevicesShortNamePrefix
 };
 
+WCHAR ObpUnsecureGlobalNamesBuffer[128] = {0};
+ULONG ObpUnsecureGlobalNamesLength = sizeof(ObpUnsecureGlobalNamesBuffer);
+
 /* PRIVATE FUNCTIONS *********************************************************/
 
 NTSTATUS