summaryrefslogtreecommitdiff
path: root/dbe
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-05-16 17:49:33 +0200
committerMarge Bot <emma+marge@anholt.net>2024-06-23 21:07:48 +0000
commitae3c57333706128134b0b1669a65d267de549bca (patch)
tree2f7c563c8421b737babb575cc8a3595f2c91974a /dbe
parent632a48a057a76eebb3fa5885b20e2a8a45392d8b (diff)
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>
Diffstat (limited to 'dbe')
-rw-r--r--dbe/midbe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbe/midbe.c b/dbe/midbe.c
index eb6057748..0b3b25ade 100644
--- a/dbe/midbe.c
+++ b/dbe/midbe.c
@@ -169,9 +169,9 @@ miDbeAllocBackBufferName(WindowPtr pWin, XID bufId, int swapAction)
}
/* Security creation/labeling check. */
- rc = XaceHook(XACE_RESOURCE_ACCESS, serverClient, bufId,
- dbeDrawableResType, pDbeWindowPriv->pBackBuffer,
- X11_RESTYPE_WINDOW, pWin, DixCreateAccess);
+ rc = XaceHookResourceAccess(serverClient, bufId, dbeDrawableResType,
+ pDbeWindowPriv->pBackBuffer, X11_RESTYPE_WINDOW,
+ pWin, DixCreateAccess);
/* Make the back pixmap a DBE drawable resource. */
if (rc != Success || !AddResource(bufId, dbeDrawableResType,