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: #33

So disable it for now.
This commit is contained in:
Albert S. 2022-04-24 19:20:49 +02:00
parent 9b51e00737
commit a132485924
1 changed files with 1 additions and 1 deletions

View File

@ -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";