[NTOS:IO] Enable privilege check in NtLoadDriver.

This commit is contained in:
Thomas Faber 2019-03-05 12:33:12 +01:00
parent 1d51b56882
commit 938f0e469d
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -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,