From 5675ae1f72145e9b719c613023da525731b42461 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Thu, 28 Feb 2008 18:12:52 -0500 Subject: XACE: Call the creation hook to properly label COMPOSITE window pixmaps. --- composite/compext.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'composite') diff --git a/composite/compext.c b/composite/compext.c index 2918556f8..97ea6d616 100644 --- a/composite/compext.c +++ b/composite/compext.c @@ -291,6 +291,12 @@ ProcCompositeNameWindowPixmap (ClientPtr client) ++pPixmap->refcnt; + /* security creation/labeling check */ + rc = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->pixmap, RT_PIXMAP, + pPixmap, RT_WINDOW, pWin, DixCreateAccess); + if (rc != Success) + return rc; + if (!AddResource (stuff->pixmap, RT_PIXMAP, (pointer) pPixmap)) return BadAlloc; -- cgit v1.2.3