[epiphany/wip/sandbox] Ensure directories are created before sandbox is initialized
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/sandbox] Ensure directories are created before sandbox is initialized
- Date: Mon, 24 Jun 2019 16:18:44 +0000 (UTC)
commit 1f18ead05fb2ee0c75cb352b6921a797ca8569e4
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Mon Jun 24 11:17:53 2019 -0500
Ensure directories are created before sandbox is initialized
Anything that doesn't exist at process launch time will not be mounted
in the sandbox.
lib/ephy-file-helpers.c | 1 +
src/ephy-main.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index a06f271cd..a2c11f9b5 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -417,6 +417,7 @@ ephy_file_helpers_init (const char *profile_dir,
ret = ephy_ensure_dir_exists (ephy_profile_dir (), error);
ephy_ensure_dir_exists (ephy_cache_dir (), NULL);
ephy_ensure_dir_exists (ephy_config_dir (), NULL);
+ ephy_ensure_dir_exists (ephy_file_tmp_dir (), NULL);
}
if (steal_data_from_profile && profile_dir) {
diff --git a/src/ephy-main.c b/src/ephy-main.c
index bc362d8c1..516f46556 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -317,8 +317,8 @@ main (int argc,
if (incognito_mode && profile_directory == NULL)
profile_directory = ephy_default_profile_dir ();
- /* Start our services */
- flags = !application_mode ? EPHY_FILE_HELPERS_ENSURE_EXISTS : 0;
+ /* Required for bubblewrap sandbox. */
+ flags = EPHY_FILE_HELPERS_ENSURE_EXISTS;
if (incognito_mode || private_instance || application_mode || automation_mode)
flags |= EPHY_FILE_HELPERS_PRIVATE_PROFILE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]