Author: ekohl
Date: Sun Jun 18 21:43:09 2017
New Revision: 75108

URL: http://svn.reactos.org/svn/reactos?rev=75108&view=rev
Log:
[NTOS:SE]
Add the CmpAssignSecurityDescriptor() stub and improve some comments.

Modified:
    trunk/reactos/ntoskrnl/config/cmse.c

Modified: trunk/reactos/ntoskrnl/config/cmse.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmse.c?rev=75108&r1=75107&r2=75108&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmse.c        [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/cmse.c        [iso-8859-1] Sun Jun 18 
21:43:09 2017
@@ -249,6 +249,15 @@
 }
 
 NTSTATUS
+CmpAssignSecurityDescriptor(IN PCM_KEY_CONTROL_BLOCK Kcb,
+                            IN PSECURITY_DESCRIPTOR SecurityDescriptor)
+{
+    DPRINT("CmpAssignSecurityDescriptor(%p %p)\n",
+           Kcb, SecurityDescriptor);
+    return STATUS_SUCCESS;
+}
+
+NTSTATUS
 NTAPI
 CmpSecurityMethod(IN PVOID ObjectBody,
                   IN SECURITY_OPERATION_CODE OperationCode,
@@ -267,7 +276,7 @@
 
     Kcb = ((PCM_KEY_BODY)ObjectBody)->KeyControlBlock;
 
-    /* Acquire hive lock */
+    /* Acquire the hive lock */
     CmpLockRegistry();
 
     /* Acquire the KCB lock */
@@ -283,10 +292,10 @@
     /* Don't touch deleted keys */
     if (Kcb->Delete)
     {
-        /* Unlock the KCB */
+        /* Release the KCB lock */
         CmpReleaseKcbLock(Kcb);
 
-        /* Unlock the HIVE */
+        /* Release the hive lock */
         CmpUnlockRegistry();
         return STATUS_KEY_DELETED;
     }
@@ -318,17 +327,18 @@
 
         case AssignSecurityDescriptor:
             DPRINT("Assign security descriptor\n");
-            /* HACK */
+            Status = CmpAssignSecurityDescriptor(Kcb,
+                                                 SecurityDescriptor);
             break;
 
         default:
             KeBugCheckEx(SECURITY_SYSTEM, 0, STATUS_INVALID_PARAMETER, 0, 0);
     }
 
-    /* Unlock the KCB */
+    /* Release the KCB lock */
     CmpReleaseKcbLock(Kcb);
 
-    /* Unlock the hive */
+    /* Release the hive lock */
     CmpUnlockRegistry();
 
     return Status;


Reply via email to