mirror of
https://github.com/reactos/reactos.git
synced 2024-06-27 16:31:30 +00:00
[NTOS:IO] Enable privilege check in NtLoadDriver.
This commit is contained in:
parent
1d51b56882
commit
938f0e469d
|
@ -2092,15 +2092,11 @@ NtLoadDriver(IN PUNICODE_STRING DriverServiceName)
|
||||||
/*
|
/*
|
||||||
* Check security privileges
|
* Check security privileges
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* FIXME: Uncomment when privileges will be correctly implemented. */
|
|
||||||
#if 0
|
|
||||||
if (!SeSinglePrivilegeCheck(SeLoadDriverPrivilege, PreviousMode))
|
if (!SeSinglePrivilegeCheck(SeLoadDriverPrivilege, PreviousMode))
|
||||||
{
|
{
|
||||||
DPRINT("Privilege not held\n");
|
DPRINT("Privilege not held\n");
|
||||||
return STATUS_PRIVILEGE_NOT_HELD;
|
return STATUS_PRIVILEGE_NOT_HELD;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
Status = ProbeAndCaptureUnicodeString(&CapturedDriverServiceName,
|
Status = ProbeAndCaptureUnicodeString(&CapturedDriverServiceName,
|
||||||
PreviousMode,
|
PreviousMode,
|
||||||
|
|
Loading…
Reference in a new issue