[NTOSKRNL] Save ObjectSecurityMode value on boot

This commit is contained in:
Pierre Schweitzer 2019-05-18 10:28:32 +02:00
parent 98638cc2df
commit a33a69b3f4
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
3 changed files with 4 additions and 1 deletions

View file

@ -149,7 +149,7 @@ INIT_SECTION CM_SYSTEM_CONTROL_VECTOR CmControlVector[] =
{
L"Session Manager",
L"ObjectSecurityMode",
&DummyData,
&ObpObjectSecurityMode,
NULL,
NULL
},

View file

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

View file

@ -52,6 +52,8 @@ PsInitializeQuotaSystem(VOID);
ULONG ObpInitializationPhase;
ULONG ObpObjectSecurityMode = 0;
/* PRIVATE FUNCTIONS *********************************************************/
static