mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 21:37:59 +02:00
XACE: Call the creation hook to properly label COMPOSITE window pixmaps.
This commit is contained in:
parent
27bcf40cda
commit
5675ae1f72
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue