summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2017-03-29 13:28:55 +0200
committerPierre Ossman <ossman@cendio.se>2017-03-29 13:28:55 +0200
commitd71508b94bd1c6f0d8be89aa559a8a7de48f7f3f (patch)
tree8ea1e5ae572343909c94f2d99da82a548b2b74ba
parentfbbd48b35e53fb156b91715dae4aab9008533565 (diff)
downloadtigervnc-d71508b94bd1c6f0d8be89aa559a8a7de48f7f3f.tar.gz
tigervnc-d71508b94bd1c6f0d8be89aa559a8a7de48f7f3f.zip
Be more restrictive with shared memory mode bits
Everyone else seems to get by with using 0600, so let's do the same.
-rw-r--r--vncviewer/PlatformPixelBuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/PlatformPixelBuffer.cxx b/vncviewer/PlatformPixelBuffer.cxx
index 7b3f34a0..a2b506df 100644
--- a/vncviewer/PlatformPixelBuffer.cxx
+++ b/vncviewer/PlatformPixelBuffer.cxx
@@ -154,7 +154,7 @@ bool PlatformPixelBuffer::setupShm()
shminfo->shmid = shmget(IPC_PRIVATE,
xim->bytes_per_line * xim->height,
- IPC_CREAT|0777);
+ IPC_CREAT|0600);
if (shminfo->shmid == -1)
goto free_xim;