summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/shm.cc
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hotmail.com>2002-03-05 12:58:24 +0000
committerRobert Collins <rbtcollins@hotmail.com>2002-03-05 12:58:24 +0000
commit241a7c5a8c8662623c04163c5132ecbf5b417b3b (patch)
treebc9947c17f541e7561485b081e19e944032b26aa /winsup/cygwin/shm.cc
parentad2864f4c8dd5157dad2011483c4076416a80f4c (diff)
downloadcygnal-241a7c5a8c8662623c04163c5132ecbf5b417b3b.tar.gz
cygnal-241a7c5a8c8662623c04163c5132ecbf5b417b3b.tar.bz2
cygnal-241a7c5a8c8662623c04163c5132ecbf5b417b3b.zip
2002-03-05 Robert Collins <rbtcollins@hotmail.com>
* cygserver_transport_pipes.cc (transport_layer_pipes::transport_layer_pipes): Always init - until static members work correctly. * shm.cc (shmget): Initialize the security descriptor - thanks Corinna! * include/sys/ipc.h: Make the ipc control constants partitioned off from the sem control constants.
Diffstat (limited to 'winsup/cygwin/shm.cc')
-rw-r--r--winsup/cygwin/shm.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/shm.cc b/winsup/cygwin/shm.cc
index 883c15074..0c65d7724 100644
--- a/winsup/cygwin/shm.cc
+++ b/winsup/cygwin/shm.cc
@@ -460,6 +460,8 @@ shmget (key_t key, size_t size, int shmflg)
char sd_buf[4096];
PSECURITY_DESCRIPTOR psd = (PSECURITY_DESCRIPTOR) sd_buf;
/* create a sd for our open requests based on shmflag & 0x01ff */
+ InitializeSecurityDescriptor (psd,
+ SECURITY_DESCRIPTOR_REVISION);
psd = alloc_sd (getuid (), getgid (), cygheap->user.logsrv (),
shmflg & 0x01ff, psd, &sd_size);