summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMostafa Emami <mostafa.emami@outlook.com>2019-11-20 15:48:07 +0100
committerMostafa Emami <mostafa.emami@outlook.com>2019-11-27 12:09:40 +0100
commitfda6ab921c8b90214f41ea8508c0f86ed5e45106 (patch)
treec0ad19726e4908c8b6f61e624061fd07e01d3471
parent7092e708a37979ed197c79f4f3d46858b92d001c (diff)
Change P2P dbus address
Privatization of /tmp through mount namespaces (tmpfs) and bind mount the P2P sockets per tools with static definition, like systemd, requires a statically known path deeper than simply /tmp Change-Id: I422a04753a84c27127ffd8d5e5c7ace5797d46c1 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
-rw-r--r--src/manager-lib/nativeruntime.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/manager-lib/nativeruntime.cpp b/src/manager-lib/nativeruntime.cpp
index 3c1865b6..408efa3e 100644
--- a/src/manager-lib/nativeruntime.cpp
+++ b/src/manager-lib/nativeruntime.cpp
@@ -105,8 +105,9 @@ NativeRuntime::NativeRuntime(AbstractContainer *container, Application *app, Nat
, m_isQuickLauncher(app == nullptr)
, m_startedViaLauncher(manager->identifier() != qL1S("native"))
{
+ QDir().mkdir(qSL("/tmp/dbus-qtam"));
QString dbusAddress = QUuid::createUuid().toString().mid(1,36);
- m_applicationInterfaceServer = new QDBusServer(qSL("unix:path=/tmp/dbus-qtam-") + dbusAddress, this);
+ m_applicationInterfaceServer = new QDBusServer(qSL("unix:path=/tmp/dbus-qtam/dbus-qtam-") + dbusAddress, this);
connect(m_applicationInterfaceServer, &QDBusServer::newConnection,
this, [this](const QDBusConnection &connection) {