[WPE][GTK] Mount /dev/shm on /run/shm in sandbox
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Jul 2018 08:56:31 +0000 (08:56 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Jul 2018 08:56:31 +0000 (08:56 +0000)
https://bugs.webkit.org/show_bug.cgi?id=187400

Patch by Thibault Saunier <tsaunier@igalia.com> on 2018-07-09
Reviewed by Philippe Normand.

This is where it is expected to be when it is a symlink,
without mounting it the websocket python server can't work
inside the sandbox.

* flatpak/flatpakutils.py:
(WebkitFlatpak.run_in_sandbox):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233638 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/flatpak/flatpakutils.py

index 21fad1f..273c296 100644 (file)
@@ -1,3 +1,17 @@
+2018-07-09  Thibault Saunier  <tsaunier@igalia.com>
+
+        [WPE][GTK] Mount /dev/shm on /run/shm in sandbox
+        https://bugs.webkit.org/show_bug.cgi?id=187400
+
+        Reviewed by Philippe Normand.
+
+        This is where it is expected to be when it is a symlink,
+        without mounting it the websocket python server can't work
+        inside the sandbox.
+
+        * flatpak/flatpakutils.py:
+        (WebkitFlatpak.run_in_sandbox):
+
 2018-07-08  Filip Pizlo  <fpizlo@apple.com>
 
         run-benchmark should run ARES-6 1.0.1
index 8964a60..d26926c 100644 (file)
@@ -653,6 +653,7 @@ class WebkitFlatpak:
         sandbox_build_path = os.path.join(self.sandbox_source_root, "WebKitBuild", self.build_type)
         with tempfile.NamedTemporaryFile(mode="w") as tmpscript:
             flatpak_command = ["flatpak", "build", "--die-with-parent",
+                "--bind-mount=/run/shm=/dev/shm",
                 "--bind-mount=/run/host/%s=%s" % (tempfile.gettempdir(), tempfile.gettempdir()),
                 "--bind-mount=%s=%s" % (self.sandbox_source_root, self.source_root),
                 # We mount WebKitBuild/PORTNAME/BuildType to /app/webkit/WebKitBuild/BuildType