diff options
author | Mostafa Emami <mostafa.emami@outlook.com> | 2020-02-11 18:44:36 +0100 |
---|---|---|
committer | Mostafa Emami <mostafa.emami@outlook.com> | 2020-02-12 13:36:26 +0100 |
commit | 4cf198fbb27de39afcee48045025edcb9cb112dc (patch) | |
tree | 20ba838ae34596d3b3183bef31d604aad190be9b | |
parent | 08143e670aea28fd6758fe8ae8186d1b66f6ab99 (diff) |
Allow access to P2P dbus to other users
Do not block other users to access P2P dbus to enable
running other appman-launcher-qml instances under different users
Enable tighter security via user namespaces
Change-Id: I6f16095aefe265cf89249bc42c02ec260cc03f57
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
-rw-r--r-- | src/manager-lib/nativeruntime.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/manager-lib/nativeruntime.cpp b/src/manager-lib/nativeruntime.cpp index c737a80d..5444cb53 100644 --- a/src/manager-lib/nativeruntime.cpp +++ b/src/manager-lib/nativeruntime.cpp @@ -109,6 +109,7 @@ NativeRuntime::NativeRuntime(AbstractContainer *container, Application *app, Nat QDir().mkdir(qSL("/tmp/dbus-qtam")); QString dbusAddress = QUuid::createUuid().toString().mid(1,36); m_applicationInterfaceServer = new QDBusServer(qSL("unix:path=/tmp/dbus-qtam/dbus-qtam-") + dbusAddress, this); + m_applicationInterfaceServer->setAnonymousAuthenticationAllowed(true); connect(m_applicationInterfaceServer, &QDBusServer::newConnection, this, [this](const QDBusConnection &connection) { |