Changeset 239204 in webkit
- Timestamp:
- Dec 14, 2018 6:38:48 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r239203 r239204 1 2018-12-14 Patrick Griffis <pgriffis@igalia.com> 2 3 [GTK][WPE] Fix forwarding webkit socket to flatpak sandbox 4 https://bugs.webkit.org/show_bug.cgi?id=192622 5 6 Reviewed by Michael Catanzaro. 7 8 This fixes running with the sandbox enabled in Flatpak. 9 10 * UIProcess/Launcher/glib/FlatpakLauncher.cpp: 11 (WebKit::flatpakSpawn): 12 * UIProcess/Launcher/glib/FlatpakLauncher.h: 13 * UIProcess/Launcher/glib/ProcessLauncherGLib.cpp: 14 (WebKit::ProcessLauncher::launchProcess): 15 1 16 2018-12-14 Carlos Garcia Campos <cgarcia@igalia.com> 2 17 -
trunk/Source/WebKit/UIProcess/Launcher/glib/FlatpakLauncher.cpp
r238851 r239204 30 30 31 31 #include <gio/gio.h> 32 #include <wtf/glib/GUniquePtr.h> 32 33 33 34 namespace WebKit { 34 35 35 GRefPtr<GSubprocess> flatpakSpawn(GSubprocessLauncher* launcher, const WebKit::ProcessLauncher::LaunchOptions& launchOptions, char** argv, GError **error)36 GRefPtr<GSubprocess> flatpakSpawn(GSubprocessLauncher* launcher, const WebKit::ProcessLauncher::LaunchOptions& launchOptions, char** argv, int childProcessSocket, GError** error) 36 37 { 37 38 ASSERT(launcher); … … 45 46 // add some permissions in between those for this to provide meaningful security. 46 47 48 GUniquePtr<gchar> childProcessSocketArg(g_strdup_printf("--forward-fd=%d", childProcessSocket)); 47 49 Vector<const char*> flatpakArgs = { 48 50 "/usr/bin/flatpak-spawn", 51 childProcessSocketArg.get(), 49 52 }; 50 53 -
trunk/Source/WebKit/UIProcess/Launcher/glib/FlatpakLauncher.h
r238851 r239204 37 37 namespace WebKit { 38 38 39 GRefPtr<GSubprocess> flatpakSpawn(GSubprocessLauncher*, const WebKit::ProcessLauncher::LaunchOptions&, char** argv, GError**);39 GRefPtr<GSubprocess> flatpakSpawn(GSubprocessLauncher*, const WebKit::ProcessLauncher::LaunchOptions&, char** argv, int childProcessSocket, GError**); 40 40 41 41 }; -
trunk/Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp
r237107 r239204 174 174 175 175 if (sandboxEnabled && isInsideFlatpak()) 176 process = flatpakSpawn(launcher.get(), m_launchOptions, argv, &error.outPtr());176 process = flatpakSpawn(launcher.get(), m_launchOptions, argv, socketPair.client, &error.outPtr()); 177 177 #if ENABLE(BUBBLEWRAP_SANDBOX) 178 178 else if (sandboxEnabled)
Note: See TracChangeset
for help on using the changeset viewer.