gecko-dev/modules
Jed Davis 9082363e4e Bug 1129492 - Remove X11 access from the Linux content process sandbox. r=gcp,jgilbert
Background: The X11 protocol has a very permissive security model;
clients have essentially full access to the windows of other clients,
and to global resources like input devices.  Previously, our sandbox
policy for content processes needed to allow access to the X server;
this limited its effectiveness against a dedicated attacker.

This patch turns on the `security.sandbox.content.headless` pref added
in bug 1640345, which removes the sandbox policy rules that allowed
making new X11 connections, as well as opening the Xauthority file,
reading hardware info needed by Mesa, etc.  It also runs content
processes in headless mode (whence the name) so they won't connect to a
display server at startup.

This also removes access to the Wayland compositor: the sandbox policy
never allowed that (as of when socket connections became default-deny),
but now content processes won't connect to it at startup.  Wayland is
more capability-oriented so this is less significant for security, but at
a minimum it removes unnecessary attack surface.

Note that if the `webgl.out-of-process` pref is turned off, WebGL
will break unless `security.sandbox.content.headless` is also turned
off.  (Similarly, `widget.non-native-theme.enabled` is needed to render
scrollbars and form controls in content.)  As a result, this patch
adjusts the job definitions used by CI to test in-process WebGL so that
that they will continue to work.

Differential Revision: https://phabricator.services.mozilla.com/D138613
2022-03-01 20:36:18 +00:00
..
brotli Bug 1733545 - Remove REQUIRES_UNIFIED_BUILD from third-party directories that don't need it. r=firefox-build-system-reviewers,andi 2021-10-01 09:01:27 +00:00
fdlibm Bug 531915 - part 5 - build and export sin, cos, and tan from fdlibm r=arai 2021-08-13 11:57:06 +00:00
freetype2 Bug 1744073 - Update freetype2 to 2.11.1. r=jfkthame 2021-12-09 16:22:19 +00:00
libjar Bug 1725363 - Replace PL_strcasecmp with nsCRT::strcasecmp modules/libjar/ r=valentin 2022-01-26 09:06:37 +00:00
libmar Bug 1747160 - Don't add TK_CFLAGS to CFLAGS/CXXFLAGS and don't add frameworks to LDFLAGS. r=firefox-build-system-reviewers,mhentges 2021-12-22 03:47:26 +00:00
libpref Bug 1129492 - Remove X11 access from the Linux content process sandbox. r=gcp,jgilbert 2022-03-01 20:36:18 +00:00
woff2 Bug 1754147 - Remove REQUIRES_UNIFIED_BUILD from modules/woff2. r=firefox-build-system-reviewers,mhentges 2022-02-09 04:22:39 +00:00
xz-embedded Bug 1733545 - Remove REQUIRES_UNIFIED_BUILD from third-party directories that don't need it. r=firefox-build-system-reviewers,andi 2021-10-01 09:01:27 +00:00
zlib Bug 1713081 - Fix to use the default clang from upstream for SM WASI. r=glandium 2021-06-02 06:00:10 +00:00
moz.build