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-28 08:49:34 +0000
commit606e92bde5ce350e2851592afb49631d9e370eba (patch)
treebb26598eb96728b36a0bbfe01b8d714c41945272
parent5828dc7a0dabbc8e0ae1414c0bdf18659aac6111 (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 Cherry-picked from 5.13: fda6ab9 Change-Id: I422a04753a84c27127ffd8d5e5c7ace5797d46c1 Reviewed-by: Bernd Weimer <bernd.weimer@pelagicore.com>
-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) {