mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xkb: Make the RT_XKBCLIENT resource private
Currently, the resource in only available to the xkb.c source file. In preparation for the next commit, to be able to free the resources from XkbRemoveResourceClient(), make that variable private instead. This is related to: CVE-2025-62230, ZDI-CAN-27545 This vulnerability was discovered by: Jan-Niklas Sohn working with Trend Micro Zero Day Initiative Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2086>
This commit is contained in:
committed by
Enrico Weigelt, metux IT consult
parent
e2cd802a73
commit
0fe98da5f5
@@ -53,7 +53,7 @@ int XkbKeyboardErrorCode;
|
||||
CARD32 xkbDebugFlags = 0;
|
||||
static CARD32 xkbDebugCtrls = 0;
|
||||
|
||||
static RESTYPE RT_XKBCLIENT;
|
||||
RESTYPE RT_XKBCLIENT = 0;
|
||||
|
||||
/***====================================================================***/
|
||||
|
||||
|
||||
@@ -98,6 +98,8 @@
|
||||
device->public.realInputProc = oldprocs->realInputProc; \
|
||||
device->unwrapProc = oldprocs->unwrapProc;
|
||||
|
||||
extern RESTYPE RT_XKBCLIENT;
|
||||
|
||||
void xkbUnwrapProc(DeviceIntPtr, DeviceHandleProc, void *);
|
||||
|
||||
void XkbForceUpdateDeviceLEDs(DeviceIntPtr keybd);
|
||||
|
||||
Reference in New Issue
Block a user