You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/07 13:34:52 UTC

svn commit: r812091 - in /commons/sandbox/runtime/trunk/src/main/native/os/win32: main.c platform.c

Author: mturk
Date: Mon Sep  7 11:34:52 2009
New Revision: 812091

URL: http://svn.apache.org/viewvc?rev=812091&view=rev
Log:
Add two more persistent sids

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c
    commons/sandbox/runtime/trunk/src/main/native/os/win32/platform.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c?rev=812091&r1=812090&r2=812091&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c Mon Sep  7 11:34:52 2009
@@ -49,6 +49,8 @@
 
 PSID acr_everyone_sid = NULL;
 PSID acr_adminsgr_sid = NULL;
+PSID acr_ownerusr_sid = NULL;
+PSID acr_ownergrp_sid = NULL;
 
 static acr_thread_local_t _null_tlsd = { {NULL, NULL}, NULL, 0 };
 static void acr_thread_key_destructor(void *data)

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/platform.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/platform.c?rev=812091&r1=812090&r2=812091&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/platform.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/platform.c Mon Sep  7 11:34:52 2009
@@ -25,6 +25,9 @@
 static const char unknown[] = "unknown";
 extern PSID acr_everyone_sid;
 extern PSID acr_adminsgr_sid;
+extern PSID acr_ownerusr_sid;
+extern PSID acr_ownergrp_sid;
+
 extern LPSYSTEM_INFO acr_osinf;
 
 acr_size_t  acr_page_size;
@@ -49,6 +52,12 @@
     if (!acr_adminsgr_sid) {
         acr_adminsgr_sid = ACR_AllocateWellKnownSid(_E, WinBuiltinAdministratorsSid);
     }
+    if (!acr_ownerusr_sid) {
+        acr_ownerusr_sid = ACR_AllocateWellKnownSid(_E, WinCreatorOwnerSid);
+    }
+    if (!acr_ownergrp_sid) {
+        acr_ownergrp_sid = ACR_AllocateWellKnownSid(_E, WinCreatorGroupSid);
+    }
     if ((rc = ACR_InitSecurityDescriptorTable(_E)))
         return rc;
     /*