xserver/hw/xfree86/common
Peter Hutterer 412777664a Disallow byte-swapped clients by default
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 let's disable this by default and allow it
only when the respective config option or commandline flag is given.

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

Fixes #1201

https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1029

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2023-01-06 11:59:37 +10:00
..
.gitignore Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
compiler.h compiler.h: don't define inb/outb and friends on mips 2021-01-27 19:29:35 +00:00
dgaproc.h dga: Make shutdown less magical and/or terrifying 2018-09-12 19:18:05 +00:00
extramodes
meson.build hw/xfree86: fix sbus build for SPARC 2021-12-14 16:00:39 +00:00
modeline2c.awk
vesamodes
xaarop.h
xf86.h xfree86: Remove -flippixels 2018-09-27 16:50:22 +00:00
xf86AutoConfig.c xf86AutoConfig: try modesetting on all platforms we build it on 2022-09-20 18:26:03 +00:00
xf86Bus.c xf86: Assign GPUs to screens according to configuration 2021-07-30 00:27:39 +00:00
xf86Bus.h xfree86: Remove vestigial lastScrnFlag 2018-09-12 20:47:15 +00:00
xf86Config.c Disallow byte-swapped clients by default 2023-01-06 11:59:37 +10:00
xf86Config.h
xf86Configure.c dix: Merge AbortDDX into ddxGiveUp 2018-09-28 16:25:12 -04:00
xf86Cursor.c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
xf86DGA.c dga: Make shutdown less magical and/or terrifying 2018-09-12 19:18:05 +00:00
xf86DPMS.c
xf86Events.c xf86/logind: Fix compilation error when built without logind/platform bus 2021-12-20 16:56:14 +01:00
xf86Extensions.c
xf86Extensions.h
xf86Globals.c xf86: autobind GPUs to the screen 2019-08-07 12:26:59 +02:00
xf86Helper.c Revert "hw/xfree86: Propagate physical dimensions from DRM connector" 2021-11-16 22:34:56 +00:00
xf86InPriv.h
xf86Init.c remove the PRE_RELEASE message. 2021-12-10 23:07:32 +01:00
xf86MatchDrivers.h
xf86Mode.c xfree86: finish removing numTimings in xf86ValidateModes() 2022-04-05 16:08:56 -07:00
xf86Module.h xfree86: Fix videodrv ABI version 2023-01-04 11:56:38 +01:00
xf86Opt.h hw: Rename boolean config value field from bool to boolean 2019-07-22 20:28:27 -04:00
xf86Option.c hw: Rename boolean config value field from bool to boolean 2019-07-22 20:28:27 -04:00
xf86Optionstr.h
xf86PM.c
xf86PciInfo.h
xf86Priv.h xfree86: On Linux, while only seat0 can have TTYs, don't assmume all seat0s have TTYs 2021-11-06 17:17:01 +00:00
xf86Privstr.h Remove check for useSIGIO option 2020-12-08 11:23:31 -05:00
xf86RandR.c
xf86VGAarbiter.c mi: Add a default no-op miSourceValidate 2019-10-30 16:26:01 +00:00
xf86VGAarbiter.h
xf86VGAarbiterPriv.h
xf86VidMode.c
xf86Xinput.c hw/xfree86: Implement public APIs to submit gesture events 2021-05-30 13:26:41 +03:00
xf86Xinput.h hw/xfree86: Implement public APIs to submit gesture events 2021-05-30 13:26:41 +03:00
xf86cmap.c
xf86cmap.h
xf86fbBus.c
xf86fbman.c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
xf86fbman.h
xf86noBus.c
xf86pciBus.c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
xf86pciBus.h
xf86platformBus.c dix: Remove pScratchPixmap and other associated ABI changes 2022-12-30 01:32:25 +00:00
xf86platformBus.h xf86: allow DDX driver for GPU/PCI hot-plug 2022-11-16 15:47:46 +00:00
xf86sbusBus.c
xf86sbusBus.h
xf86str.h xfree86: Change displays array to pointers array to fix invalid pointer issues after table reallocation 2021-06-15 10:01:14 +00:00
xf86xv.c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
xf86xv.h
xf86xvmc.c
xf86xvmc.h
xf86xvpriv.h
xisb.c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
xisb.h
xorgHelper.c
xorgVersion.h