xace: add creation/labeling hook to CreateRootWindow().

This commit is contained in:
Eamon Walsh 2007-10-17 13:48:44 -04:00 committed by Eamon Walsh
parent 773f6491c1
commit e3a8cbe523

View File

@ -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;