https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f821e1742cb1272a544a1fa013b676134733ba17

commit f821e1742cb1272a544a1fa013b676134733ba17
Author:     Pierre Schweitzer <[email protected]>
AuthorDate: Sat May 18 10:36:29 2019 +0200
Commit:     Pierre Schweitzer <[email protected]>
CommitDate: Sat May 18 10:37:25 2019 +0200

    [NTOSKRNL] Implement NtQuerySystemInformation(SystemObjectSecurityMode)
---
 ntoskrnl/ex/sysinfo.c | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/ntoskrnl/ex/sysinfo.c b/ntoskrnl/ex/sysinfo.c
index 4949705ab29..e3c6ece86d6 100644
--- a/ntoskrnl/ex/sysinfo.c
+++ b/ntoskrnl/ex/sysinfo.c
@@ -2615,6 +2615,22 @@ QSI_DEF(SystemExtendedHandleInformation)
     return Status;
 }
 
+/* Class 70 - System object security mode information  */
+QSI_DEF(SystemObjectSecurityMode)
+{
+    PULONG ObjectSecurityInfo = (PULONG)Buffer;
+
+    /* Validate input size */
+    if (Size != sizeof(ULONG))
+    {
+        return STATUS_INFO_LENGTH_MISMATCH;
+    }
+
+    *ObjectSecurityInfo = ObpObjectSecurityMode;
+
+    return STATUS_SUCCESS;
+}
+
 /* Class 76 - System firmware table information  */
 QSI_DEF(SystemFirmwareTableInformation)
 {
@@ -2807,7 +2823,7 @@ CallQS [] =
     SI_XX(SystemSessionPoolTagInformation), /* FIXME: not implemented */
     SI_XX(SystemSessionMappedViewInformation), /* FIXME: not implemented */
     SI_XX(SystemHotpatchInformation), /* FIXME: not implemented */
-    SI_XX(SystemObjectSecurityMode), /* FIXME: not implemented */
+    SI_QX(SystemObjectSecurityMode),
     SI_XX(SystemWatchdogTimerHandler), /* FIXME: not implemented */
     SI_XX(SystemWatchdogTimerInformation), /* FIXME: not implemented */
     SI_XX(SystemLogicalProcessorInformation), /* FIXME: not implemented */

Reply via email to