summaryrefslogtreecommitdiff
path: root/composite/compext.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2008-02-28 18:12:52 -0500
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2008-02-28 18:12:52 -0500
commit5675ae1f72145e9b719c613023da525731b42461 (patch)
tree6ba7f5c50f2e6c812126854538af3c0303456f6c /composite/compext.c
parent27bcf40cda1d7c52b189cc76528f1f51cbe1d5eb (diff)
XACE: Call the creation hook to properly label COMPOSITE window pixmaps.
Diffstat (limited to 'composite/compext.c')
-rw-r--r--composite/compext.c6
1 files changed, 6 insertions, 0 deletions
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;