diff options
Diffstat (limited to 'Xext')
-rw-r--r-- | Xext/shm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Xext/shm.c b/Xext/shm.c index 52d997425..b359a9035 100644 --- a/Xext/shm.c +++ b/Xext/shm.c @@ -971,6 +971,12 @@ ProcPanoramiXShmCreatePixmap(ClientPtr client) stuff->offset); if (pMap) { + result = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->pid, + RT_PIXMAP, pMap, RT_NONE, NULL, DixCreateAccess); + if (result != Success) { + pDraw->pScreen->DestroyPixmap(pMap); + return result; + } dixSetPrivate(&pMap->devPrivates, shmPixmapPrivateKey, shmdesc); shmdesc->refcnt++; pMap->drawable.serialNumber = NEXT_SERIAL_NUMBER; |