Author: tretiakov
Date: Sun Apr 1 21:27:59 2007
New Revision: 26232
URL:
http://svn.reactos.org/svn/reactos?rev=26232&view=rev
Log:
Add missing check
Modified:
trunk/reactos/ntoskrnl/ex/sysinfo.c
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/sysinfo.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/sysinfo.c (original)
+++ trunk/reactos/ntoskrnl/ex/sysinfo.c Sun Apr 1 21:27:59 2007
@@ -1322,6 +1322,9 @@
if(Size != sizeof(PVOID))
return STATUS_INFO_LENGTH_MISMATCH;
+ if(KeGetPreviousMode() != KernelMode)
+ return STATUS_PRIVILEGE_NOT_HELD;
+
// Scan the module list
NextEntry = PsLoadedModuleList.Flink;
while(NextEntry != &PsLoadedModuleList)