[epiphany] Revert "Revert "Add important paths to the sandbox""
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Revert "Revert "Add important paths to the sandbox""
- Date: Wed, 24 Jul 2019 19:14:22 +0000 (UTC)
commit b78a3dc410d6d5b77437301caf33452c81dfe1c1
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Wed Jul 24 14:13:10 2019 -0500
Revert "Revert "Add important paths to the sandbox""
This reverts commit dcd73fb3619676da1d145ea0b5ad38f89a153eae.
embed/ephy-embed-shell.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index 336f6b19f..1cb979697 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -1205,7 +1205,16 @@ ephy_embed_shell_startup (GApplication *application)
shell, 0);
webkit_web_context_set_process_model (priv->web_context,
WEBKIT_PROCESS_MODEL_MULTIPLE_SECONDARY_PROCESSES);
+
webkit_web_context_set_sandbox_enabled (priv->web_context, TRUE);
+ webkit_web_context_add_path_to_sandbox (priv->web_context, ephy_file_tmp_dir (), TRUE);
+ webkit_web_context_add_path_to_sandbox (priv->web_context, ephy_profile_dir (), TRUE);
+ webkit_web_context_add_path_to_sandbox (priv->web_context, ephy_cache_dir (), TRUE);
+ webkit_web_context_add_path_to_sandbox (priv->web_context, ephy_config_dir (), TRUE);
+
+#if DEVELOPER_MODE
+ webkit_web_context_add_path_to_sandbox (priv->web_context, BUILD_ROOT, TRUE);
+#endif
g_signal_connect_object (priv->web_context, "initialize-web-extensions",
G_CALLBACK (initialize_web_process_extensions),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]