summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-10-17 13:48:44 -0400
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2007-10-17 13:48:44 -0400
commite3a8cbe523bae8b771ad3c8ad497f4444f6d05d5 (patch)
tree2df316391d9d51125eb8f8e373e988d6f9207a55 /dix
parent773f6491c1cc8819038e753d08c32ba213f80f8f (diff)
xace: add creation/labeling hook to CreateRootWindow().
Diffstat (limited to 'dix')
-rw-r--r--dix/window.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/dix/window.c b/dix/window.c
index 597ad2ef3..17ab2a7a3 100644
--- a/dix/window.c
+++ b/dix/window.c
@@ -434,6 +434,12 @@ CreateRootWindow(ScreenPtr pScreen)
pWin->border.pixel = pScreen->blackPixel;
pWin->borderWidth = 0;
+ /* security creation/labeling check
+ */
+ if (XaceHook(XACE_RESOURCE_ACCESS, serverClient, pWin->drawable.id,
+ RT_WINDOW, pWin, RT_NONE, NULL, DixCreateAccess))
+ return FALSE;
+
if (!AddResource(pWin->drawable.id, RT_WINDOW, (pointer)pWin))
return FALSE;