mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-28 12:10:07 +01:00
xace: add special-case for just setting the event mask on a window,
this should only check "receive" permission, not "setattr" permission.
This commit is contained in:
parent
97c150b61b
commit
963e69b8ef
1 changed files with 5 additions and 3 deletions
|
|
@ -570,11 +570,13 @@ ProcChangeWindowAttributes(ClientPtr client)
|
|||
{
|
||||
WindowPtr pWin;
|
||||
REQUEST(xChangeWindowAttributesReq);
|
||||
int result;
|
||||
int len, rc;
|
||||
int result, len, rc;
|
||||
Mask access_mode = DixSetAttrAccess;
|
||||
|
||||
REQUEST_AT_LEAST_SIZE(xChangeWindowAttributesReq);
|
||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixSetAttrAccess);
|
||||
if (stuff->valueMask == CWEventMask)
|
||||
access_mode = DixReceiveAccess;
|
||||
rc = dixLookupWindow(&pWin, stuff->window, client, access_mode);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
len = client->req_len - (sizeof(xChangeWindowAttributesReq) >> 2);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue