Title: [263966] trunk/Source/WebKit
- Revision
- 263966
- Author
- [email protected]
- Date
- 2020-07-06 05:13:08 -0700 (Mon, 06 Jul 2020)
Log Message
BubblewrapLauncher.cpp: Add paths required for sndio
https://bugs.webkit.org/show_bug.cgi?id=212524
Information about the paths currently ins't into the sndio
documentation but it can be found in this email:
http://www.sndio.org/arch/0077.html
Patch by Haelwenn (lanodan) Monnier <[email protected]> on 2020-07-06
Reviewed by Adrian Perez de Castro.
Manually tested, there is currently no automatic tests for it
* UIProcess/Launcher/glib/BubblewrapLauncher.cpp:
(WebKit::bindSndio):
(WebKit::bubblewrapSpawn):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (263965 => 263966)
--- trunk/Source/WebKit/ChangeLog 2020-07-06 09:47:58 UTC (rev 263965)
+++ trunk/Source/WebKit/ChangeLog 2020-07-06 12:13:08 UTC (rev 263966)
@@ -1,3 +1,20 @@
+2020-07-06 Haelwenn (lanodan) Monnier <[email protected]>
+
+ BubblewrapLauncher.cpp: Add paths required for sndio
+ https://bugs.webkit.org/show_bug.cgi?id=212524
+
+ Information about the paths currently ins't into the sndio
+ documentation but it can be found in this email:
+ http://www.sndio.org/arch/0077.html
+
+ Reviewed by Adrian Perez de Castro.
+
+ Manually tested, there is currently no automatic tests for it
+
+ * UIProcess/Launcher/glib/BubblewrapLauncher.cpp:
+ (WebKit::bindSndio):
+ (WebKit::bubblewrapSpawn):
+
2020-07-06 Carlos Garcia Campos <[email protected]>
[GTK][WPE] Change the cookies accept policy when ITP is enabled
Modified: trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp (263965 => 263966)
--- trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp 2020-07-06 09:47:58 UTC (rev 263965)
+++ trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp 2020-07-06 12:13:08 UTC (rev 263966)
@@ -381,6 +381,18 @@
bindIfExists(args, "/dev/snd", BindFlags::Device);
}
+static void bindSndio(Vector<CString>& args)
+{
+ bindIfExists(args, "/tmp/sndio", BindFlags::ReadWrite);
+
+ GUniquePtr<char> sndioUidDir(g_strdup_printf("/tmp/sndio-%d", getuid()));
+ bindIfExists(args, sndioUidDir.get(), BindFlags::ReadWrite);
+
+ const char* homeDir = g_get_home_dir();
+ GUniquePtr<char> sndioHomeDir(g_build_filename(homeDir, ".sndio", nullptr));
+ bindIfExists(args, sndioHomeDir.get(), BindFlags::ReadWrite);
+}
+
static void bindFonts(Vector<CString>& args)
{
const char* configDir = g_get_user_config_dir();
@@ -806,6 +818,7 @@
bindDBusSession(sandboxArgs, proxy);
// FIXME: We should move to Pipewire as soon as viable, Pulse doesn't restrict clients atm.
bindPulse(sandboxArgs);
+ bindSndio(sandboxArgs);
bindFonts(sandboxArgs);
bindGStreamerData(sandboxArgs);
bindOpenGL(sandboxArgs);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes