summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-12-22 08:32:12 -0800
committerThiago Macieira <thiago.macieira@intel.com>2013-01-25 00:06:50 +0100
commit57756e72adf2081137b97f0e689dd16c770d10b1 (patch)
treef5d570f5911def3a4f13be2993f6bb7fe75ef608 /tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp
parent3b14dc93cf0ef06f1424d7d6319a1af4505faa53 (diff)
Change all shmget calls to user-only memory4.7
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> (cherry picked from commit 20b26bdb3dd5e46b01b9a7e1ce8342074df3c89c)
Diffstat (limited to 'tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp')
-rw-r--r--tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp b/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp
index ae7694170a..c5cd952867 100644
--- a/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp
+++ b/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp
@@ -189,7 +189,7 @@ int tst_QSharedMemory::remove(const QString &key)
return -3;
}
- int id = shmget(unix_key, 0, 0660);
+ int id = shmget(unix_key, 0, 0600);
if (-1 == id) {
qDebug() << "shmget failed";
return -4;