Xnamespace: whitelist resource access for serverClient
The server itself is allowed to access anything w/o restrictions. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
eaa08af7d1
commit
df56b26ed4
|
@ -15,6 +15,10 @@ void hookResourceAccess(CallbackListPtr *pcbl, void *unused, void *calldata)
|
|||
ClientPtr owner = dixLookupXIDOwner(param->id);
|
||||
struct XnamespaceClientPriv *obj = XnsClientPriv(owner);
|
||||
|
||||
// server can do anything
|
||||
if (param->client == serverClient)
|
||||
goto pass;
|
||||
|
||||
// special filtering for windows: block transparency for untrusted clients
|
||||
if (param->rtype == X11_RESTYPE_WINDOW) {
|
||||
WindowPtr pWindow = (WindowPtr) param->res;
|
||||
|
|
Loading…
Reference in New Issue