mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
xace: typesafe hook function for XACE_RESOURCE_ACCESS
The generic XaceHook() call isn't typesafe (und unnecessarily slow). Better add an explicit function, just like we already have for others. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1556>
This commit is contained in:
committed by
Marge Bot
parent
632a48a057
commit
ae3c573337
@@ -373,7 +373,7 @@ ProcXFixesGetCursorImage(ClientPtr client)
|
||||
pCursor = CursorForClient(client);
|
||||
if (!pCursor)
|
||||
return BadCursor;
|
||||
rc = XaceHook(XACE_RESOURCE_ACCESS, client, pCursor->id, X11_RESTYPE_CURSOR,
|
||||
rc = XaceHookResourceAccess(client, pCursor->id, X11_RESTYPE_CURSOR,
|
||||
pCursor, X11_RESTYPE_NONE, NULL, DixReadAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
@@ -522,7 +522,7 @@ ProcXFixesGetCursorImageAndName(ClientPtr client)
|
||||
pCursor = CursorForClient(client);
|
||||
if (!pCursor)
|
||||
return BadCursor;
|
||||
rc = XaceHook(XACE_RESOURCE_ACCESS, client, pCursor->id, X11_RESTYPE_CURSOR,
|
||||
rc = XaceHookResourceAccess(client, pCursor->id, X11_RESTYPE_CURSOR,
|
||||
pCursor, X11_RESTYPE_NONE, NULL, DixReadAccess | DixGetAttrAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user