Files
xserver/os
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
..
2023-10-23 23:30:14 -04:00
2017-02-23 09:20:48 +10:00
2020-07-05 13:07:33 -07:00
2017-10-30 13:45:20 -04:00
2017-11-06 17:22:46 -05:00
2016-07-21 15:04:47 -04:00
2012-03-21 13:54:42 -07:00
2012-03-21 13:54:42 -07:00
2024-03-23 14:42:15 -07:00
2019-10-30 16:17:04 +00:00
2020-05-27 07:15:07 +00:00
2013-10-31 16:58:12 -07:00