mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-17 00:32:57 +00:00
xace: fix access mode in dixLookupWindow within several RandR calls.
Referencing a screen using a window only requires GetAttr access. Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
This commit is contained in:
parent
d4b8f7602b
commit
4098ad72d0
2 changed files with 5 additions and 5 deletions
|
|
@ -288,7 +288,7 @@ ProcRRCreateMode (ClientPtr client)
|
||||||
RRModePtr mode;
|
RRModePtr mode;
|
||||||
|
|
||||||
REQUEST_AT_LEAST_SIZE (xRRCreateModeReq);
|
REQUEST_AT_LEAST_SIZE (xRRCreateModeReq);
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixReadAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -210,7 +210,7 @@ ProcRRGetScreenSizeRange (ClientPtr client)
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xRRGetScreenInfoReq);
|
REQUEST_SIZE_MATCH(xRRGetScreenInfoReq);
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixReadAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
|
@ -261,7 +261,7 @@ ProcRRSetScreenSize (ClientPtr client)
|
||||||
int i, rc;
|
int i, rc;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xRRSetScreenSizeReq);
|
REQUEST_SIZE_MATCH(xRRSetScreenSizeReq);
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixReadAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
|
@ -331,7 +331,7 @@ rrGetScreenResources(ClientPtr client, Bool query)
|
||||||
CARD8 *names;
|
CARD8 *names;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xRRGetScreenResourcesReq);
|
REQUEST_SIZE_MATCH(xRRGetScreenResourcesReq);
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixReadAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
|
@ -606,7 +606,7 @@ ProcRRGetScreenInfo (ClientPtr client)
|
||||||
RROutputPtr output;
|
RROutputPtr output;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xRRGetScreenInfoReq);
|
REQUEST_SIZE_MATCH(xRRGetScreenInfoReq);
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixReadAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue