Changeset 258699 in webkit


Ignore:
Timestamp:
Mar 19, 2020 8:24:52 AM (4 years ago)
Author:
Philippe Normand
Message:

[Flatpak SDK] Release logs not sent to journald when running within the SDK runtime
https://bugs.webkit.org/show_bug.cgi?id=209223

Reviewed by Carlos Alberto Lopez Perez.

flatpak build doesn't expose a --socket option for white-listing
the systemd journal socket. So white-list everything in /run. 🤷

  • flatpak/flatpakutils.py:

(WebkitFlatpak.run_in_sandbox):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r258698 r258699  
     12020-03-19  Philippe Normand  <pnormand@igalia.com>
     2
     3        [Flatpak SDK] Release logs not sent to journald when running within the SDK runtime
     4        https://bugs.webkit.org/show_bug.cgi?id=209223
     5
     6        Reviewed by Carlos Alberto Lopez Perez.
     7
     8        flatpak build doesn't expose a --socket option for white-listing
     9        the systemd journal socket. So white-list everything in /run. 🤷
     10
     11        * flatpak/flatpakutils.py:
     12        (WebkitFlatpak.run_in_sandbox):
     13
    1142020-03-19  Charlie Turner  <cturner@igalia.com>
    215
  • trunk/Tools/flatpak/flatpakutils.py

    r258626 r258699  
    569569
    570570        sandbox_build_path = os.path.join(self.sandbox_source_root, "WebKitBuild", self.build_type)
     571        # FIXME: Using the `run` flatpak command would be better, but it doesn't
     572        # have a --bind-mount option.
    571573        flatpak_command = ["flatpak", "build",
    572574                           "--die-with-parent",
     
    575577                           "--talk-name=org.gtk.vfs.*",
    576578                           "--bind-mount=/run/shm=/dev/shm",
    577                            # Workaround for https://webkit.org/b/187384 to have our own perl modules usable inside the sandbox
    578                            # as setting the PERL5LIB envvar won't work inside apache (and for scripts using `perl -T``).
     579                           # Access to /run/host is required by the crash log reporter.
    579580                           "--bind-mount=/run/host/%s=%s" % (tempfile.gettempdir(), tempfile.gettempdir()),
     581                           # flatpak build doesn't expose a --socket option for
     582                           # white-listing the systemd journal socket. So
     583                           # white-list it in /run, hoping this is the right
     584                           # path.
     585                           "--bind-mount=/run/systemd/journal=/run/systemd/journal",
    580586                           "--bind-mount=%s=%s" % (self.sandbox_source_root, self.source_root),
    581587                           # We mount WebKitBuild/PORTNAME/BuildType to /app/webkit/WebKitBuild/BuildType
Note: See TracChangeset for help on using the changeset viewer.