From 1594bad1f885b18bfb4476e38c3011042f21d1f3 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 17 Apr 2025 17:35:37 +0200 Subject: [PATCH] Xres: XResQueryClients: enable security filtering Pass each client we're considering to report through XaceHookClientAccess(), so security extensions have a chance to filter them out. Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/xres.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Xext/xres.c b/Xext/xres.c index bd7580d2b..b5d8ee826 100644 --- a/Xext/xres.c +++ b/Xext/xres.c @@ -13,6 +13,7 @@ #include "dix/registry_priv.h" #include "os/client_priv.h" +#include "Xext/xace.h" #include "misc.h" #include "os.h" @@ -229,8 +230,10 @@ ProcXResQueryClients(ClientPtr client) num_clients = 0; for (i = 0; i < currentMaxClients; i++) { if (clients[i]) { - current_clients[num_clients] = i; - num_clients++; + if (XaceHookClientAccess(client, clients[i], DixReadAccess) == Success) { + current_clients[num_clients] = i; + num_clients++; + } } }