summaryrefslogtreecommitdiff
path: root/damageext/damageext.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-09-04 14:01:55 -0400
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2007-09-04 14:01:55 -0400
commitce9e83d913511fe619da42f805d7bcd1a2a60d90 (patch)
tree75ab80dae574ea5be7d3db71073b67ebb2d4de17 /damageext/damageext.c
parentc9ceb4878063ca22487c708d9d1f86e367f2cec8 (diff)
xace: add hooks + new access codes: Damage extension
Diffstat (limited to 'damageext/damageext.c')
-rwxr-xr-xdamageext/damageext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/damageext/damageext.c b/damageext/damageext.c
index 159746536..517c72dac 100755
--- a/damageext/damageext.c
+++ b/damageext/damageext.c
@@ -185,7 +185,7 @@ ProcDamageCreate (ClientPtr client)
REQUEST_SIZE_MATCH(xDamageCreateReq);
LEGAL_NEW_RESOURCE(stuff->damage, client);
rc = dixLookupDrawable(&pDrawable, stuff->drawable, client, 0,
- DixReadAccess);
+ DixGetAttrAccess|DixReadAccess);
if (rc != Success)
return rc;
@@ -295,7 +295,7 @@ ProcDamageAdd (ClientPtr client)
REQUEST_SIZE_MATCH(xDamageAddReq);
VERIFY_REGION(pRegion, stuff->region, client, DixWriteAccess);
rc = dixLookupDrawable(&pDrawable, stuff->drawable, client, 0,
- DixReadAccess);
+ DixWriteAccess);
if (rc != Success)
return rc;