Change all shmget calls to user-only memory
authorThiago Macieira <thiago.macieira@intel.com>
Sat, 22 Dec 2012 16:32:12 +0000 (08:32 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 18 Jan 2013 06:05:19 +0000 (07:05 +0100)
commit20b26bdb3dd5e46b01b9a7e1ce8342074df3c89c
treeeb185bea4efd92b789c569e1038b5f4218fae321
parent0e8030bf479eb08bb718899f698a3f513eb36844
Change all shmget calls to user-only memory

Drop the read and write permissions for group and other users in the
system.

Change-Id: I8fc753f09126651af3fb82df3049050f0b14e876
(cherry-picked from Qt 5 commit 856f209fb63ae336bfb389a12d2a75fa886dc1c5)
Reviewed-by: Richard J. Moore <rich@kde.org>
src/corelib/kernel/qsharedmemory_unix.cpp
src/corelib/kernel/qsystemsemaphore_unix.cpp
src/gui/image/qnativeimage.cpp
src/gui/image/qpixmap_x11.cpp
src/plugins/platforms/xcb/qxcbwindowsurface.cpp
src/plugins/platforms/xlib/qxlibwindowsurface.cpp
tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp
tools/qvfb/qvfbshmem.cpp