diff options
Diffstat (limited to 'dix')
-rw-r--r-- | dix/window.c | 6 |
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; |