summaryrefslogtreecommitdiff
path: root/dri3
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2019-01-14 12:42:00 -0500
committerAdam Jackson <ajax@nwnk.net>2019-01-16 20:05:43 +0000
commit086c2e3de55bbf0cbc1d97f7dc2db70a7f5e69e3 (patch)
tree889c71f55285d64e75b1429927793928f7eafeaf /dri3
parent6c1d720047b193f138e877e994cb4a4fb8e73753 (diff)
dri3: Fix XACE access mode for open and get_supported_modifiers
Neither opening a screen nor querying its modifiers confers the right to attach the buffer for any particular pixmap. GetAttr seems more correct. Fixes: xorg/xserver#550
Diffstat (limited to 'dri3')
-rw-r--r--dri3/dri3_request.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dri3/dri3_request.c b/dri3/dri3_request.c
index e34bebedb..958877efa 100644
--- a/dri3/dri3_request.c
+++ b/dri3/dri3_request.c
@@ -135,7 +135,7 @@ proc_dri3_open(ClientPtr client)
REQUEST_SIZE_MATCH(xDRI3OpenReq);
- status = dixLookupDrawable(&drawable, stuff->drawable, client, 0, DixReadAccess);
+ status = dixLookupDrawable(&drawable, stuff->drawable, client, 0, DixGetAttrAccess);
if (status != Success)
return status;
@@ -365,7 +365,7 @@ proc_dri3_get_supported_modifiers(ClientPtr client)
REQUEST_SIZE_MATCH(xDRI3GetSupportedModifiersReq);
- status = dixLookupWindow(&window, stuff->window, client, DixReadAccess);
+ status = dixLookupWindow(&window, stuff->window, client, DixGetAttrAccess);
if (status != Success)
return status;
pScreen = window->drawable.pScreen;