From a132485924fe1bde5f83b6f339c1ee54a2c436e6 Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 24 Apr 2022 19:20:49 +0200 Subject: [PATCH] gui: enableSandbox: Don't unshare network due to slowdowns The indexer is quite slow with unshared network namespaces. It appears something in Qt needs it as IPC or whatever. Seeing also dbus-related errors: Issue: https://gitea.quitesimple.org/crtxcr/looqs/issues/33 So disable it for now. --- gui/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/main.cpp b/gui/main.cpp index c4810d8..ccdd996 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -33,7 +33,7 @@ void enableSandbox(QString socketPath) std::string sockPath = socketPath.toStdString(); std::string dbPath = QFileInfo(Common::databasePath()).absolutePath().toStdString(); std::string mySelf = QFileInfo("/proc/self/exe").symLinkTarget().toStdString(); - policy->namespace_options = EXILE_UNSHARE_NETWORK | EXILE_UNSHARE_USER; + policy->namespace_options = EXILE_UNSHARE_USER; if(exile_append_path_policies(policy, EXILE_FS_ALLOW_ALL_READ, "/") != 0) { qCritical() << "Failed to append a path to the path policy";