[NTOS:CM] Initially start the registry in read-only mode.

Disable registry hive writes, until the IO subsystem is initialized
and disk access is enabled (when the SM signals so after AUTOCHK).
This commit is contained in:
Hermès Bélusca-Maïto 2023-12-14 22:15:58 +01:00
parent 76f1da5631
commit 793ee786cd
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -24,7 +24,11 @@ PEPROCESS CmpSystemProcess;
PVOID CmpRegistryLockCallerCaller, CmpRegistryLockCaller;
BOOLEAN CmpFlushOnLockRelease;
BOOLEAN CmpSpecialBootCondition;
BOOLEAN CmpNoWrite;
/* Disable registry hive writes, until the IO subsystem is initialized
* and disk access is enabled (when the SM signals so after AUTOCHK) */
BOOLEAN CmpNoWrite = TRUE;
BOOLEAN CmpWasSetupBoot;
BOOLEAN CmpProfileLoaded;
BOOLEAN CmpNoVolatileCreates;
@ -1469,9 +1473,10 @@ CmpInitializeHiveList(VOID)
ULONG i;
USHORT RegStart;
PSECURITY_DESCRIPTOR SecurityDescriptor;
PAGED_CODE();
/* Allow writing for now */
/* Reenable hive writes now */
CmpNoWrite = FALSE;
/* Build the file name and registry name strings */