From 40207c33995db0404826e611d3178ad27b55df8a Mon Sep 17 00:00:00 2001 From: Albert S Date: Mon, 30 May 2022 19:40:59 +0200 Subject: [PATCH] gui: Remove enableSandbox() for general GUI While f67a37bc21 indicated the last remaining code could stay, it can't because there is a launch failure of SandboxedProcessor. This has been revealed by the changes of the previous commit, aa03d0a4920e. Hence, the GUI will be untouched by exile. We only sandbox the preview generation and the indexing trough IPC. --- gui/main.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/gui/main.cpp b/gui/main.cpp index 707b0d0..6c57db5 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -15,25 +15,6 @@ #include "../submodules/exile.h/exile.h" #include "ipcserver.h" -void enableSandbox() -{ - struct exile_policy *policy = exile_create_policy(); - if(policy == NULL) - { - qCritical() << "Failed to init policy for sandbox"; - exit(EXIT_FAILURE); - } - policy->namespace_options = 0; - policy->no_new_privs = 1; - int ret = exile_enable_policy(policy); - if(ret != 0) - { - qDebug() << "Failed to establish sandbox"; - exit(EXIT_FAILURE); - } - exile_free_policy(policy); -} - void enableIpcSandbox() { struct exile_policy *policy = exile_create_policy(); @@ -139,15 +120,6 @@ int main(int argc, char *argv[]) try { Common::ensureConfigured(); - if(!parser.isSet("no-sandbox")) - { - enableSandbox(); - qInfo() << "Sandbox: on"; - } - else - { - qInfo() << "Sandbox: off"; - } } catch(LooqsGeneralException &e) {