From e3a8cbe523bae8b771ad3c8ad497f4444f6d05d5 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Wed, 17 Oct 2007 13:48:44 -0400 Subject: xace: add creation/labeling hook to CreateRootWindow(). --- dix/window.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dix') 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; -- cgit v1.2.3