xace: provide creation-time resource hook call in CreateWindow().
This commit is contained in:
parent
99b220969f
commit
299ff4c829
|
@ -729,6 +729,14 @@ CreateWindow(Window wid, WindowPtr pParent, int x, int y, unsigned w,
|
||||||
|
|
||||||
pWin->borderWidth = bw;
|
pWin->borderWidth = bw;
|
||||||
|
|
||||||
|
/* security creation/labeling check
|
||||||
|
*/
|
||||||
|
if (!XaceHook(XACE_RESOURCE_ACCESS, wid, RT_WINDOW, DixCreateAccess, pWin))
|
||||||
|
{
|
||||||
|
xfree(pWin);
|
||||||
|
*error = BadAccess;
|
||||||
|
return NullWindow;
|
||||||
|
}
|
||||||
/* can't let untrusted clients have background None windows;
|
/* can't let untrusted clients have background None windows;
|
||||||
* they make it too easy to steal window contents
|
* they make it too easy to steal window contents
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue