XACE: Fix instances of DixUnknownAccess at hook callsites.
This commit is contained in:
parent
453661a9e1
commit
27bcf40cda
|
@ -479,7 +479,7 @@ __glXGetDrawable(__GLXcontext *glxc, GLXDrawable drawId, ClientPtr client,
|
||||||
* resource ID clashes. Effectively, the X Window is now also a
|
* resource ID clashes. Effectively, the X Window is now also a
|
||||||
* GLXWindow. */
|
* GLXWindow. */
|
||||||
|
|
||||||
rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixUnknownAccess);
|
rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixGetAttrAccess);
|
||||||
if (rc != Success || pDraw->type != DRAWABLE_WINDOW) {
|
if (rc != Success || pDraw->type != DRAWABLE_WINDOW) {
|
||||||
client->errorValue = drawId;
|
client->errorValue = drawId;
|
||||||
*error = __glXError(GLXBadDrawable);
|
*error = __glXError(GLXBadDrawable);
|
||||||
|
@ -1086,7 +1086,7 @@ DoCreateGLXPixmap(ClientPtr client, __GLXscreen *pGlxScreen, __GLcontextModes *c
|
||||||
DrawablePtr pDraw;
|
DrawablePtr pDraw;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
err = dixLookupDrawable(&pDraw, drawableId, client, 0, DixUnknownAccess);
|
err = dixLookupDrawable(&pDraw, drawableId, client, 0, DixAddAccess);
|
||||||
if (err != Success || pDraw->type != DRAWABLE_PIXMAP) {
|
if (err != Success || pDraw->type != DRAWABLE_PIXMAP) {
|
||||||
client->errorValue = drawableId;
|
client->errorValue = drawableId;
|
||||||
return BadPixmap;
|
return BadPixmap;
|
||||||
|
@ -1364,7 +1364,7 @@ int __glXDisp_CreateWindow(__GLXclientState *cl, GLbyte *pc)
|
||||||
if (!validGlxFBConfig(client, pGlxScreen, req->fbconfig, &config, &err))
|
if (!validGlxFBConfig(client, pGlxScreen, req->fbconfig, &config, &err))
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
err = dixLookupDrawable(&pDraw, req->window, client, 0, DixUnknownAccess);
|
err = dixLookupDrawable(&pDraw, req->window, client, 0, DixAddAccess);
|
||||||
if (err != Success || pDraw->type != DRAWABLE_WINDOW) {
|
if (err != Success || pDraw->type != DRAWABLE_WINDOW) {
|
||||||
client->errorValue = req->window;
|
client->errorValue = req->window;
|
||||||
return BadWindow;
|
return BadWindow;
|
||||||
|
@ -2004,7 +2004,7 @@ int __glXDisp_BindSwapBarrierSGIX(__GLXclientState *cl, GLbyte *pc)
|
||||||
int screen, rc;
|
int screen, rc;
|
||||||
__GLXscreen *pGlxScreen;
|
__GLXscreen *pGlxScreen;
|
||||||
|
|
||||||
rc = dixLookupDrawable(&pDraw, drawable, client, 0, DixUnknownAccess);
|
rc = dixLookupDrawable(&pDraw, drawable, client, 0, DixGetAttrAccess);
|
||||||
pGlxScreen = glxGetScreen(pDraw->pScreen);
|
pGlxScreen = glxGetScreen(pDraw->pScreen);
|
||||||
if (rc == Success && (pDraw->type == DRAWABLE_WINDOW)) {
|
if (rc == Success && (pDraw->type == DRAWABLE_WINDOW)) {
|
||||||
screen = pDraw->pScreen->myNum;
|
screen = pDraw->pScreen->myNum;
|
||||||
|
|
|
@ -919,7 +919,7 @@ ProcPanoramiXGetState(ClientPtr client)
|
||||||
register int n, rc;
|
register int n, rc;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xPanoramiXGetStateReq);
|
REQUEST_SIZE_MATCH(xPanoramiXGetStateReq);
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
@ -946,7 +946,7 @@ ProcPanoramiXGetScreenCount(ClientPtr client)
|
||||||
register int n, rc;
|
register int n, rc;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq);
|
REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq);
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
@ -972,7 +972,7 @@ ProcPanoramiXGetScreenSize(ClientPtr client)
|
||||||
register int n, rc;
|
register int n, rc;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq);
|
REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq);
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
|
|
@ -525,7 +525,7 @@ int PanoramiXGetGeometry(ClientPtr client)
|
||||||
REQUEST(xResourceReq);
|
REQUEST(xResourceReq);
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xResourceReq);
|
REQUEST_SIZE_MATCH(xResourceReq);
|
||||||
rc = dixLookupDrawable(&pDraw, stuff->id, client, M_ANY, DixUnknownAccess);
|
rc = dixLookupDrawable(&pDraw, stuff->id, client, M_ANY, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
@ -1024,7 +1024,7 @@ int PanoramiXCopyArea(ClientPtr client)
|
||||||
|
|
||||||
FOR_NSCREENS(j) {
|
FOR_NSCREENS(j) {
|
||||||
rc = dixLookupDrawable(drawables+j, src->info[j].id, client, 0,
|
rc = dixLookupDrawable(drawables+j, src->info[j].id, client, 0,
|
||||||
DixUnknownAccess);
|
DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
@ -1779,7 +1779,7 @@ int PanoramiXGetImage(ClientPtr client)
|
||||||
return (*SavedProcVector[X_GetImage])(client);
|
return (*SavedProcVector[X_GetImage])(client);
|
||||||
|
|
||||||
rc = dixLookupDrawable(&pDraw, stuff->drawable, client, 0,
|
rc = dixLookupDrawable(&pDraw, stuff->drawable, client, 0,
|
||||||
DixUnknownAccess);
|
DixReadAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
@ -1817,7 +1817,7 @@ int PanoramiXGetImage(ClientPtr client)
|
||||||
drawables[0] = pDraw;
|
drawables[0] = pDraw;
|
||||||
for(i = 1; i < PanoramiXNumScreens; i++) {
|
for(i = 1; i < PanoramiXNumScreens; i++) {
|
||||||
rc = dixLookupDrawable(drawables+i, draw->info[i].id, client, 0,
|
rc = dixLookupDrawable(drawables+i, draw->info[i].id, client, 0,
|
||||||
DixUnknownAccess);
|
DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
|
@ -655,7 +655,7 @@ ProcPanoramiXShmGetImage(ClientPtr client)
|
||||||
return ProcShmGetImage(client);
|
return ProcShmGetImage(client);
|
||||||
|
|
||||||
rc = dixLookupDrawable(&pDraw, stuff->drawable, client, 0,
|
rc = dixLookupDrawable(&pDraw, stuff->drawable, client, 0,
|
||||||
DixUnknownAccess);
|
DixReadAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
@ -692,7 +692,7 @@ ProcPanoramiXShmGetImage(ClientPtr client)
|
||||||
drawables[0] = pDraw;
|
drawables[0] = pDraw;
|
||||||
for(i = 1; i < PanoramiXNumScreens; i++) {
|
for(i = 1; i < PanoramiXNumScreens; i++) {
|
||||||
rc = dixLookupDrawable(drawables+i, draw->info[i].id, client, 0,
|
rc = dixLookupDrawable(drawables+i, draw->info[i].id, client, 0,
|
||||||
DixUnknownAccess);
|
DixReadAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
@ -767,7 +767,7 @@ ProcPanoramiXShmCreatePixmap(
|
||||||
return BadImplementation;
|
return BadImplementation;
|
||||||
LEGAL_NEW_RESOURCE(stuff->pid, client);
|
LEGAL_NEW_RESOURCE(stuff->pid, client);
|
||||||
rc = dixLookupDrawable(&pDraw, stuff->drawable, client, M_ANY,
|
rc = dixLookupDrawable(&pDraw, stuff->drawable, client, M_ANY,
|
||||||
DixUnknownAccess);
|
DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
|
|
@ -1800,7 +1800,7 @@ ProcXpPutDocumentData(ClientPtr client)
|
||||||
if (pContext->state & DOC_RAW_STARTED)
|
if (pContext->state & DOC_RAW_STARTED)
|
||||||
return BadDrawable;
|
return BadDrawable;
|
||||||
result = dixLookupDrawable(&pDraw, stuff->drawable, client, 0,
|
result = dixLookupDrawable(&pDraw, stuff->drawable, client, 0,
|
||||||
DixUnknownAccess);
|
DixWriteAccess);
|
||||||
if (result != Success)
|
if (result != Success)
|
||||||
return result;
|
return result;
|
||||||
if (pDraw->pScreen->myNum != pContext->screenNum)
|
if (pDraw->pScreen->myNum != pContext->screenNum)
|
||||||
|
|
|
@ -833,7 +833,7 @@ SendEvent(ClientPtr client, DeviceIntPtr d, Window dest, Bool propagate,
|
||||||
} else
|
} else
|
||||||
effectiveFocus = pWin = inputFocus;
|
effectiveFocus = pWin = inputFocus;
|
||||||
} else
|
} else
|
||||||
dixLookupWindow(&pWin, dest, client, DixUnknownAccess);
|
dixLookupWindow(&pWin, dest, client, DixSendAccess);
|
||||||
if (!pWin)
|
if (!pWin)
|
||||||
return BadWindow;
|
return BadWindow;
|
||||||
if ((propagate != xFalse) && (propagate != xTrue)) {
|
if ((propagate != xFalse) && (propagate != xTrue)) {
|
||||||
|
|
|
@ -92,7 +92,7 @@ static Bool
|
||||||
compRepaintBorder (ClientPtr pClient, pointer closure)
|
compRepaintBorder (ClientPtr pClient, pointer closure)
|
||||||
{
|
{
|
||||||
WindowPtr pWindow;
|
WindowPtr pWindow;
|
||||||
int rc = dixLookupWindow(&pWindow, (XID)closure, pClient,DixUnknownAccess);
|
int rc = dixLookupWindow(&pWindow, (XID)closure, pClient, DixWriteAccess);
|
||||||
|
|
||||||
if (rc == Success) {
|
if (rc == Success) {
|
||||||
RegionRec exposed;
|
RegionRec exposed;
|
||||||
|
|
|
@ -213,7 +213,7 @@ remove_device(DBusMessage *message, DBusMessage *reply, DBusError *error)
|
||||||
MALFORMED_MESSAGE_ERROR();
|
MALFORMED_MESSAGE_ERROR();
|
||||||
}
|
}
|
||||||
|
|
||||||
dixLookupDevice(&dev, deviceid, serverClient, DixUnknownAccess);
|
dixLookupDevice(&dev, deviceid, serverClient, DixDestroyAccess);
|
||||||
if (!dev) {
|
if (!dev) {
|
||||||
DebugF("[config/dbus] bogus device id %d given\n", deviceid);
|
DebugF("[config/dbus] bogus device id %d given\n", deviceid);
|
||||||
ret = BadMatch;
|
ret = BadMatch;
|
||||||
|
|
|
@ -431,7 +431,7 @@ int __glXBindSwapBarrierSGIX(__GLXclientState *cl, GLbyte *pc)
|
||||||
__glXWindow *pGlxWindow = NULL;
|
__glXWindow *pGlxWindow = NULL;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
rc = dixLookupDrawable(&pDraw, req->drawable, client, 0, DixUnknownAccess);
|
rc = dixLookupDrawable(&pDraw, req->drawable, client, 0, DixGetAttrAccess);
|
||||||
if (rc != Success) {
|
if (rc != Success) {
|
||||||
pGlxPixmap = (__GLXpixmap *) LookupIDByType(req->drawable,
|
pGlxPixmap = (__GLXpixmap *) LookupIDByType(req->drawable,
|
||||||
__glXPixmapRes);
|
__glXPixmapRes);
|
||||||
|
@ -461,7 +461,7 @@ int __glXJoinSwapGroupSGIX(__GLXclientState *cl, GLbyte *pc)
|
||||||
__glXWindow *pGlxWindow = NULL;
|
__glXWindow *pGlxWindow = NULL;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
rc = dixLookupDrawable(&pDraw, req->drawable, client, 0, DixUnknownAccess);
|
rc = dixLookupDrawable(&pDraw, req->drawable, client, 0, DixManageAccess);
|
||||||
if (rc != Success) {
|
if (rc != Success) {
|
||||||
pGlxPixmap = (__GLXpixmap *) LookupIDByType(req->drawable,
|
pGlxPixmap = (__GLXpixmap *) LookupIDByType(req->drawable,
|
||||||
__glXPixmapRes);
|
__glXPixmapRes);
|
||||||
|
@ -481,7 +481,7 @@ int __glXJoinSwapGroupSGIX(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
|
||||||
if (req->member != None) {
|
if (req->member != None) {
|
||||||
rc = dixLookupDrawable(&pMember, req->member, client, 0,
|
rc = dixLookupDrawable(&pMember, req->member, client, 0,
|
||||||
DixUnknownAccess);
|
DixGetAttrAccess);
|
||||||
if (rc != Success) {
|
if (rc != Success) {
|
||||||
pGlxPixmap = (__GLXpixmap *) LookupIDByType(req->member,
|
pGlxPixmap = (__GLXpixmap *) LookupIDByType(req->member,
|
||||||
__glXPixmapRes);
|
__glXPixmapRes);
|
||||||
|
@ -780,7 +780,7 @@ static int MakeCurrent(__GLXclientState *cl,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (drawId != None) {
|
if (drawId != None) {
|
||||||
rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixUnknownAccess);
|
rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixWriteAccess);
|
||||||
if (rc == Success) {
|
if (rc == Success) {
|
||||||
if (pDraw->type == DRAWABLE_WINDOW) {
|
if (pDraw->type == DRAWABLE_WINDOW) {
|
||||||
/*
|
/*
|
||||||
|
@ -887,7 +887,7 @@ static int MakeCurrent(__GLXclientState *cl,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (readId != None && readId != drawId ) {
|
if (readId != None && readId != drawId ) {
|
||||||
rc = dixLookupDrawable(&pReadDraw, readId, client, 0,DixUnknownAccess);
|
rc = dixLookupDrawable(&pReadDraw, readId, client, 0, DixReadAccess);
|
||||||
if (rc == Success) {
|
if (rc == Success) {
|
||||||
if (pReadDraw->type == DRAWABLE_WINDOW) {
|
if (pReadDraw->type == DRAWABLE_WINDOW) {
|
||||||
/*
|
/*
|
||||||
|
@ -1645,7 +1645,7 @@ static int CreateGLXPixmap(__GLXclientState *cl,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rc = dixLookupDrawable(&pDraw, pixmapId, client, M_DRAWABLE_PIXMAP,
|
rc = dixLookupDrawable(&pDraw, pixmapId, client, M_DRAWABLE_PIXMAP,
|
||||||
DixUnknownAccess);
|
DixAddAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
@ -1779,7 +1779,7 @@ static int CreateGLXPixmap(__GLXclientState *cl,
|
||||||
#ifdef PANORAMIX
|
#ifdef PANORAMIX
|
||||||
if (pXinDraw) {
|
if (pXinDraw) {
|
||||||
dixLookupDrawable(&pRealDraw, pXinDraw->info[s].id, client, 0,
|
dixLookupDrawable(&pRealDraw, pXinDraw->info[s].id, client, 0,
|
||||||
DixUnknownAccess);
|
DixAddAccess);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1950,7 +1950,7 @@ int __glXDoSwapBuffers(__GLXclientState *cl, XID drawId, GLXContextTag tag)
|
||||||
/*
|
/*
|
||||||
** Check that the GLX drawable is valid.
|
** Check that the GLX drawable is valid.
|
||||||
*/
|
*/
|
||||||
rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixUnknownAccess);
|
rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixWriteAccess);
|
||||||
if (rc == Success) {
|
if (rc == Success) {
|
||||||
from_screen = to_screen = pDraw->pScreen->myNum;
|
from_screen = to_screen = pDraw->pScreen->myNum;
|
||||||
|
|
||||||
|
@ -2104,7 +2104,7 @@ int __glXSwapBuffers(__GLXclientState *cl, GLbyte *pc)
|
||||||
/*
|
/*
|
||||||
** Check that the GLX drawable is valid.
|
** Check that the GLX drawable is valid.
|
||||||
*/
|
*/
|
||||||
rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixUnknownAccess);
|
rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixWriteAccess);
|
||||||
if (rc == Success) {
|
if (rc == Success) {
|
||||||
if (pDraw->type != DRAWABLE_WINDOW) {
|
if (pDraw->type != DRAWABLE_WINDOW) {
|
||||||
/*
|
/*
|
||||||
|
@ -2893,7 +2893,7 @@ int __glXCreateWindow(__GLXclientState *cl, GLbyte *pc)
|
||||||
** Check if windowId is valid
|
** Check if windowId is valid
|
||||||
*/
|
*/
|
||||||
rc = dixLookupDrawable(&pDraw, windowId, client, M_DRAWABLE_WINDOW,
|
rc = dixLookupDrawable(&pDraw, windowId, client, M_DRAWABLE_WINDOW,
|
||||||
DixUnknownAccess);
|
DixAddAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
@ -3277,7 +3277,7 @@ int __glXGetDrawableAttributes(__GLXclientState *cl, GLbyte *pc)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (drawId != None) {
|
if (drawId != None) {
|
||||||
rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixUnknownAccess);
|
rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixGetAttrAccess);
|
||||||
if (rc == Success) {
|
if (rc == Success) {
|
||||||
if (pDraw->type == DRAWABLE_WINDOW) {
|
if (pDraw->type == DRAWABLE_WINDOW) {
|
||||||
WindowPtr pWin = (WindowPtr)pDraw;
|
WindowPtr pWin = (WindowPtr)pDraw;
|
||||||
|
@ -3438,7 +3438,7 @@ int __glXChangeDrawableAttributes(__GLXclientState *cl, GLbyte *pc)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (drawId != None) {
|
if (drawId != None) {
|
||||||
rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixUnknownAccess);
|
rc = dixLookupDrawable(&pDraw, drawId, client, 0, DixSetAttrAccess);
|
||||||
if (rc == Success) {
|
if (rc == Success) {
|
||||||
if (pDraw->type == DRAWABLE_WINDOW) {
|
if (pDraw->type == DRAWABLE_WINDOW) {
|
||||||
WindowPtr pWin = (WindowPtr)pDraw;
|
WindowPtr pWin = (WindowPtr)pDraw;
|
||||||
|
|
|
@ -179,7 +179,7 @@ static int ProcPseudoramiXGetState(ClientPtr client)
|
||||||
register int n, rc;
|
register int n, rc;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xPanoramiXGetStateReq);
|
REQUEST_SIZE_MATCH(xPanoramiXGetStateReq);
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ static int ProcPseudoramiXGetScreenCount(ClientPtr client)
|
||||||
register int n, rc;
|
register int n, rc;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq);
|
REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq);
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
@ -233,7 +233,7 @@ static int ProcPseudoramiXGetScreenSize(ClientPtr client)
|
||||||
register int n, rc;
|
register int n, rc;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq);
|
REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq);
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@ ProcRRXineramaGetState(ClientPtr client)
|
||||||
Bool active = FALSE;
|
Bool active = FALSE;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xPanoramiXGetStateReq);
|
REQUEST_SIZE_MATCH(xPanoramiXGetStateReq);
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if(rc != Success)
|
if(rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
@ -184,7 +184,7 @@ ProcRRXineramaGetScreenCount(ClientPtr client)
|
||||||
register int n, rc;
|
register int n, rc;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq);
|
REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq);
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@ ProcRRXineramaGetScreenSize(ClientPtr client)
|
||||||
register int n, rc;
|
register int n, rc;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq);
|
REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq);
|
||||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
|
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue