XACE: Call the creation hook to properly label COMPOSITE window pixmaps.

This commit is contained in:
Eamon Walsh 2008-02-28 18:12:52 -05:00 committed by Eamon Walsh
parent 27bcf40cda
commit 5675ae1f72
1 changed files with 6 additions and 0 deletions

View File

@ -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;