[NTOSKRNL] Save ProtectionMode value on boot

This commit is contained in:
Pierre Schweitzer
2019-05-21 08:34:16 +02:00
parent 611e6d7d0e
commit 1c4e44592c
3 changed files with 3 additions and 1 deletions

View File

@@ -141,7 +141,7 @@ INIT_SECTION CM_SYSTEM_CONTROL_VECTOR CmControlVector[] =
{
L"Session Manager",
L"ProtectionMode",
&DummyData,
&ObpProtectionMode,
NULL,
NULL
},

View File

@@ -619,6 +619,7 @@ extern UNICODE_STRING ObpDosDevicesShortName;
extern WCHAR ObpUnsecureGlobalNamesBuffer[128];
extern ULONG ObpUnsecureGlobalNamesLength;
extern ULONG ObpObjectSecurityMode;
extern ULONG ObpProtectionMode;
//
// Inlined Functions

View File

@@ -53,6 +53,7 @@ PsInitializeQuotaSystem(VOID);
ULONG ObpInitializationPhase;
ULONG ObpObjectSecurityMode = 0;
ULONG ObpProtectionMode = 0;
/* PRIVATE FUNCTIONS *********************************************************/