mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[NTOSKRNL]
Don't allow saving keys which are located directly in the master hive. svn path=/trunk/; revision=63508
This commit is contained in:
parent
2996e28ecd
commit
a31b680c53
|
@ -2307,6 +2307,13 @@ CmSaveKey(IN PCM_KEY_CONTROL_BLOCK Kcb,
|
|||
goto Cleanup;
|
||||
}
|
||||
|
||||
if (Kcb->KeyHive == &CmiVolatileHive->Hive)
|
||||
{
|
||||
/* Keys that are directly in the master hive can't be saved */
|
||||
Status = STATUS_ACCESS_DENIED;
|
||||
goto Cleanup;
|
||||
}
|
||||
|
||||
/* Create a new hive that will hold the key */
|
||||
Status = CmpInitializeHive(&KeyHive,
|
||||
HINIT_CREATE,
|
||||
|
|
Loading…
Reference in a new issue