mirror of
https://github.com/reactos/reactos.git
synced 2026-06-05 03:02:59 +08:00
[NTOS:EX] In NtSystemDebugControl, check for SeDebugPrivilege
This commit is contained in:
committed by
Hermès Bélusca-Maïto
parent
9e7c3770e3
commit
6338d51353
@@ -218,6 +218,10 @@ NtSystemDebugControl(
|
||||
ULONG Length = 0;
|
||||
NTSTATUS Status;
|
||||
|
||||
/* Debugger controlling requires the debug privilege */
|
||||
if (!SeSinglePrivilegeCheck(SeDebugPrivilege, PreviousMode))
|
||||
return STATUS_ACCESS_DENIED;
|
||||
|
||||
_SEH2_TRY
|
||||
{
|
||||
if (PreviousMode != KernelMode)
|
||||
|
||||
Reference in New Issue
Block a user