Files
xserver/include
Peter Hutterer 5d7272f05d Allow disabling byte-swapped clients
The X server swapping code is a huge attack surface, much of this code
is untested and prone to security issues. The use-case of byte-swapped
clients is very niche, so allow users to disable this if they don't
need it, using either a config option or commandline flag.

For Xorg, this adds the ServerFlag "AllowByteSwappedClients" "off".
For all DDX, this adds the commandline options +byteswappedclients and
-byteswappedclients to enable or disable, respectively.

Fixes #1201
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
---
(cherry picked from commit 412777664a)
(cherry picked from commit af5cd5acc9012e527ee869f8e98bf6c2e9a02ca4)
Backport to server-21.1-branch modified to keep byte-swapping enabled
by default but easy to disable by users or admins (or even by distros
shipping an xorg.conf.d fragment in their packages).

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1440>
2024-03-23 14:42:15 -07:00
..
2020-07-05 13:07:33 -07:00
2014-07-17 10:19:52 -07:00
2014-11-12 10:25:00 +10:00
2014-11-12 10:25:00 +10:00
2014-11-12 10:25:00 +10:00
2015-06-30 12:17:51 +10:00
2021-12-19 23:33:28 +02:00
2014-11-12 10:25:00 +10:00
2018-02-14 17:04:48 -05:00
2017-06-20 16:37:24 -04:00
2020-09-15 11:43:16 +02:00
2014-11-12 10:25:00 +10:00
2017-03-17 15:14:42 -04:00
2018-01-22 17:28:12 -05:00
2020-07-05 13:07:33 -07:00
2014-11-12 10:25:00 +10:00
2024-03-23 14:42:15 -07:00
2023-10-23 23:30:14 -04:00
2014-11-12 10:25:00 +10:00
2014-11-12 10:25:00 +10:00
2015-01-23 10:35:49 -08:00
2014-11-12 10:25:00 +10:00
2014-11-12 10:25:00 +10:00
2019-04-12 21:53:03 +00:00
2014-11-12 10:25:00 +10:00
2020-07-05 13:07:33 -07:00
2019-01-10 18:40:20 +02:00
2014-11-12 10:25:00 +10:00