Commit d744df32 authored by Eamon Walsh's avatar Eamon Walsh Committed by Eamon Walsh

xace: add hooks + new access codes: core protocol colormap requests

parent acc9a42c
......@@ -64,6 +64,7 @@ SOFTWARE.
#include "resource.h"
#include "windowstr.h"
#include "privates.h"
#include "xace.h"
extern XID clientErrorValue;
extern int colormapPrivateCount;
......@@ -412,6 +413,16 @@ CreateColormap (Colormap mid, ScreenPtr pScreen, VisualPtr pVisual,
}
}
/*
* Security creation/labeling check
*/
i = XaceHook(XACE_RESOURCE_ACCESS, clients[client], mid, RT_COLORMAP,
DixCreateAccess, pmap);
if (i != Success) {
FreeResource(mid, RT_NONE);
return i;
}
if (!(*pScreen->CreateColormap)(pmap))
{
FreeResource (mid, RT_NONE);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment