projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c6f9fe3
)
[NTOSKNRL]
author
Pierre Schweitzer
<pierre@reactos.org>
Sun, 21 Jun 2015 08:07:11 +0000
(08:07 +0000)
committer
Pierre Schweitzer
<pierre@reactos.org>
Sun, 21 Jun 2015 08:07:11 +0000
(08:07 +0000)
As shown by the non commited yet tests from Thomas, we have to check for privilege in NtSetSystemInformation - SystemFlagsInformation
svn path=/trunk/; revision=68224
reactos/ntoskrnl/ex/sysinfo.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/ex/sysinfo.c
b/reactos/ntoskrnl/ex/sysinfo.c
index
3589d65
..
b77e0a1
100644
(file)
--- a/
reactos/ntoskrnl/ex/sysinfo.c
+++ b/
reactos/ntoskrnl/ex/sysinfo.c
@@
-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;
}