[NTOSKRNL] Save ProtectionMode value on boot
authorPierre Schweitzer <pierre@reactos.org>
Tue, 21 May 2019 06:34:16 +0000 (08:34 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Tue, 21 May 2019 17:28:16 +0000 (19:28 +0200)
ntoskrnl/config/cmdata.c
ntoskrnl/include/internal/ob.h
ntoskrnl/ob/obinit.c

index 9b788b5..816dfd2 100644 (file)
@@ -141,7 +141,7 @@ INIT_SECTION CM_SYSTEM_CONTROL_VECTOR CmControlVector[] =
     {
         L"Session Manager",
         L"ProtectionMode",
-        &DummyData,
+        &ObpProtectionMode,
         NULL,
         NULL
     },
index 59bd669..ce8c5a0 100644 (file)
@@ -619,6 +619,7 @@ extern UNICODE_STRING ObpDosDevicesShortName;
 extern WCHAR ObpUnsecureGlobalNamesBuffer[128];
 extern ULONG ObpUnsecureGlobalNamesLength;
 extern ULONG ObpObjectSecurityMode;
+extern ULONG ObpProtectionMode;
 
 //
 // Inlined Functions
index fece62e..5ae4e73 100644 (file)
@@ -53,6 +53,7 @@ PsInitializeQuotaSystem(VOID);
 ULONG ObpInitializationPhase;
 
 ULONG ObpObjectSecurityMode = 0;
+ULONG ObpProtectionMode = 0;
 
 /* PRIVATE FUNCTIONS *********************************************************/