mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
XACE: Call the creation hook to properly label COMPOSITE window pixmaps.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user