[NTOSKNRL]

As shown by the non commited yet tests from Thomas, we have to check for privilege in NtSetSystemInformation - SystemFlagsInformation

svn path=/trunk/; revision=68224
This commit is contained in:
Pierre Schweitzer 2015-06-21 08:07:11 +00:00
parent c6f9fe3713
commit f633746280

View file

@ -1080,6 +1080,12 @@ SSI_DEF(SystemFlagsInformation)
{
return STATUS_INFO_LENGTH_MISMATCH;
}
if (!SeSinglePrivilegeCheck(SeDebugPrivilege, ExGetPreviousMode()))
{
return STATUS_ACCESS_DENIED;
}
NtGlobalFlag = ((PSYSTEM_FLAGS_INFORMATION) Buffer)->Flags;
return STATUS_SUCCESS;
}