settings: Add Xwayland byte-swapped clients

Recent versions of Xwayland can allow or disallow X11 clients from
different endianess to connect.

Add a setting to configure this feature from mutter, who spawns
Xwayland.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2785>
This commit is contained in:
Olivier Fourdan
2023-01-09 15:35:52 +01:00
parent 9e0b5b1886
commit 5be6e7b18e
3 changed files with 49 additions and 0 deletions

View File

@@ -125,6 +125,30 @@
</description>
</key>
<key name="xwayland-allow-byte-swapped-clients" type="b">
<default>false</default>
<summary>Allow X11 clients with a different endianess to connect to Xwayland</summary>
<description>
Allow connections from clients with an endianess different to that
of Xwayland.
The X server byte-swapping code is a huge attack surface, much of
that code in Xwayland is prone to security issues.
The use-case of byte-swapped clients is very niche, and disabled by
default in Xwayland.
Enable this option to instruct Xwayland to accept connections from
X11 clients with a different endianess.
This option has no effect if Xwayland does not support the command
line option +byteswappedclients/-byteswappedclients to control that
setting.
Xwayland needs to be restarted for this setting to take effect.
</description>
</key>
</schema>
</schemalist>