[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
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
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 *********************************************************/