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/08/18 19:02:14 UTC

svn commit: r805495 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c

Author: mturk
Date: Tue Aug 18 17:02:13 2009
New Revision: 805495

URL: http://svn.apache.org/viewvc?rev=805495&view=rev
Log:
Use our instead default SD

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

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c?rev=805495&r1=805494&r2=805495&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c Tue Aug 18 17:02:13 2009
@@ -42,6 +42,8 @@
     const wchar_t  *filename;
 };
 
+extern PSECURITY_DESCRIPTOR acr_sd_filesys_admin;
+
 static int shm_cleanup(void *shm, int type, unsigned int flags)
 {
     int rc = 0;
@@ -145,7 +147,7 @@
     /* Name-based shared memory */
     else {
         sa.nLength = sizeof(SECURITY_ATTRIBUTES);
-        sa.lpSecurityDescriptor = NULL;
+        sa.lpSecurityDescriptor = acr_sd_filesys_admin;
         sa.bInheritHandle = FALSE;
         /* Do file backed, which is not an inherited handle
          * While we could open APR_EXCL, it doesn't seem that Unix