damage: fix resource access flag on destroy
When destroying a resource, the lookup needs to be done with
DixDestroyAccess (instead of DixWriteAccess) flag - otherwise
xace hooks can't properly differenciate what's happening.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Fixes: 6c46645cfc
This commit is contained in:
parent
86cf2c5ce3
commit
9903f2bf40
|
@ -317,7 +317,7 @@ ProcDamageDestroy(ClientPtr client)
|
|||
DamageExtPtr pDamageExt;
|
||||
|
||||
REQUEST_SIZE_MATCH(xDamageDestroyReq);
|
||||
VERIFY_DAMAGEEXT(pDamageExt, stuff->damage, client, DixWriteAccess);
|
||||
VERIFY_DAMAGEEXT(pDamageExt, stuff->damage, client, DixDestroyAccess);
|
||||
FreeResource(stuff->damage, X11_RESTYPE_NONE);
|
||||
return Success;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue