Author: pschweitzer
Date: Sun Dec 28 13:15:14 2014
New Revision: 65860
URL:
http://svn.reactos.org/svn/reactos?rev=65860&view=rev
Log:
[NTOSKRNL]
Also lock IopSecurityResource during access check in IopParseDevice
Modified:
trunk/reactos/ntoskrnl/io/iomgr/file.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/file.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/file.c?r…
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/file.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/file.c [iso-8859-1] Sun Dec 28 13:15:14 2014
@@ -393,6 +393,9 @@
(!(OpenPacket->RelatedFileObject) || (VolumeOpen)) &&
!(OpenPacket->Override))
{
+ KeEnterCriticalRegion();
+ ExAcquireResourceSharedLite(&IopSecurityResource, TRUE);
+
/* Check if a device object is being parsed */
if (!RemainingName->Length)
{
@@ -504,6 +507,9 @@
}
}
+ ExReleaseResourceLite(&IopSecurityResource);
+ KeLeaveCriticalRegion();
+
/* Check if we hold the lock */
if (LockHeld)
{