https://git.reactos.org/?p=reactos.git;a=commitdiff;h=938f0e469d197ad12ba27…
commit 938f0e469d197ad12ba2714971e02dc26120202e
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Tue Mar 5 12:33:12 2019 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Mon Mar 11 08:30:14 2019 +0100
[NTOS:IO] Enable privilege check in NtLoadDriver.
---
ntoskrnl/io/iomgr/driver.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/ntoskrnl/io/iomgr/driver.c b/ntoskrnl/io/iomgr/driver.c
index c9fa6116c4..9bbbb2cda7 100644
--- a/ntoskrnl/io/iomgr/driver.c
+++ b/ntoskrnl/io/iomgr/driver.c
@@ -2092,15 +2092,11 @@ NtLoadDriver(IN PUNICODE_STRING DriverServiceName)
/*
* Check security privileges
*/
-
- /* FIXME: Uncomment when privileges will be correctly implemented. */
-#if 0
if (!SeSinglePrivilegeCheck(SeLoadDriverPrivilege, PreviousMode))
{
DPRINT("Privilege not held\n");
return STATUS_PRIVILEGE_NOT_HELD;
}
-#endif
Status = ProbeAndCaptureUnicodeString(&CapturedDriverServiceName,
PreviousMode,