summaryrefslogtreecommitdiff
path: root/embed/ephy-embed-shell.c
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2019-06-12 16:30:19 -0500
committerMichael Catanzaro <mcatanzaro@posteo.net>2019-06-30 14:15:15 +0000
commit8d768e0c159da29d3677f5920bae347c8ed597f8 (patch)
tree88e9d86410fa9726755b5f528b02c779d6ce7476 /embed/ephy-embed-shell.c
parenta2b73274280efa067632ec0dfedb3fcc7a41f8fe (diff)
downloadepiphany-8d768e0c159da29d3677f5920bae347c8ed597f8.tar.gz
embed-shell: use a unix:dir address for the D-Bus server
This will allow sandboxed web processes to connect to the D-Bus server. Depends on glib!911
Diffstat (limited to 'embed/ephy-embed-shell.c')
-rw-r--r--embed/ephy-embed-shell.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index 0b1b91c99..ad0b7a274 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -1032,7 +1032,11 @@ ephy_embed_shell_setup_web_process_extensions_server (EphyEmbedShell *shell)
g_autofree char *address = NULL;
g_autoptr(GError) error = NULL;
- address = g_strdup_printf ("unix:tmpdir=%s", g_get_tmp_dir ());
+ /* Due to the bubblewrap sandbox, we cannot use any abstract sockets here.
+ * This means that unix:tmpdir= or unix:abstract= addresses will not work.
+ * Using unix:dir= guarantees that abstract sockets won't be used.
+ */
+ address = g_strdup_printf ("unix:dir=%s", ephy_file_tmp_dir ());
observer = g_dbus_auth_observer_new ();
@@ -1052,7 +1056,7 @@ ephy_embed_shell_setup_web_process_extensions_server (EphyEmbedShell *shell)
&error);
if (error) {
- g_warning ("Failed to start web process extension server on %s: %s", address, error->message);
+ g_warning ("Failed to start embed shell D-Bus server on %s: %s", address, error->message);
return;
}