mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[NTOS:EX] In NtSystemDebugControl, check for SeDebugPrivilege
This commit is contained in:
parent
9e7c3770e3
commit
6338d51353
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue