commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r805495 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c
Date Tue, 18 Aug 2009 17:02:14 GMT
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



Mime
View raw message