Title: [294150] trunk/Tools
- Revision
- 294150
- Author
- [email protected]
- Date
- 2022-05-13 01:36:08 -0700 (Fri, 13 May 2022)
Log Message
[Flatpak SDK] Sandbox access to pipewire socket
https://bugs.webkit.org/show_bug.cgi?id=240338
Patch by Philippe Normand <[email protected]> on 2022-05-13
Reviewed by Adrian Perez de Castro.
Starting from version 0.5 of Bubblewrap bind mounts behavior slightly changed. Without this
patch the pipewire socket wouldn't be available from the default XDG runtime directory.
* flatpak/webkit-bwrap:
Canonical link: https://commits.webkit.org/250520@main
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (294149 => 294150)
--- trunk/Tools/ChangeLog 2022-05-13 08:31:46 UTC (rev 294149)
+++ trunk/Tools/ChangeLog 2022-05-13 08:36:08 UTC (rev 294150)
@@ -1,3 +1,15 @@
+2022-05-12 Philippe Normand <[email protected]>
+
+ [Flatpak SDK] Sandbox access to pipewire socket
+ https://bugs.webkit.org/show_bug.cgi?id=240338
+
+ Reviewed by Adrian Perez de Castro.
+
+ Starting from version 0.5 of Bubblewrap bind mounts behavior slightly changed. Without this
+ patch the pipewire socket wouldn't be available from the default XDG runtime directory.
+
+ * flatpak/webkit-bwrap:
+
2022-05-12 Alex Christensen <[email protected]>
Make if-domain and unless-domain regexes only look at URL hosts
Modified: trunk/Tools/flatpak/webkit-bwrap (294149 => 294150)
--- trunk/Tools/flatpak/webkit-bwrap 2022-05-13 08:31:46 UTC (rev 294149)
+++ trunk/Tools/flatpak/webkit-bwrap 2022-05-13 08:36:08 UTC (rev 294150)
@@ -88,12 +88,14 @@
if coredumps_dir:
try_bind_mounts[coredumps_dir] = coredumps_dir
+ bwrap_args = ["bwrap", ]
+
xdg_runtime_dir = environ.get("XDG_RUNTIME_DIR")
if xdg_runtime_dir:
- pw_socket = os.path.join(xdg_runtime_dir, "pipewire-0")
- try_bind_mounts[pw_socket] = pw_socket
+ pipewire_runtime_dir = "/host/xdg-runtime"
+ bwrap_args.extend(("--ro-bind-try", xdg_runtime_dir, pipewire_runtime_dir,
+ "--setenv", "PIPEWIRE_RUNTIME_DIR", pipewire_runtime_dir))
- bwrap_args = ["bwrap", ]
for dst, src in bind_mounts.items():
bwrap_args.extend(("--bind", src, dst))
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes