diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2007-09-20 12:17:17 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil> | 2007-09-20 12:17:17 -0400 |
commit | f6532a81eec5f096e27285687964b77c17987f72 (patch) | |
tree | 78d9359e0245fb3c5ff60d0ab60e0d41e4ff0b0c | |
parent | 82f7195a628cc7ec94abc0cfe5bae2be8af443bc (diff) |
xace: add hooks + new access codes: APPGROUP extension
-rw-r--r-- | Xext/appgroup.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Xext/appgroup.c b/Xext/appgroup.c index 7bd205587..c40782df5 100644 --- a/Xext/appgroup.c +++ b/Xext/appgroup.c @@ -345,7 +345,7 @@ int AttrValidate( ColormapPtr pColormap; rc = dixLookupWindow(&pWin, pAppGrp->default_root, client, - DixUnknownAccess); + DixGetAttrAccess); if (rc != Success) return rc; pScreen = pWin->drawable.pScreen; @@ -367,8 +367,10 @@ int AttrValidate( } if (pAppGrp->default_colormap) { - pColormap = (ColormapPtr)LookupIDByType (pAppGrp->default_colormap, RT_COLORMAP); - /* XXX check that pColormap is not NULL */ + rc = dixLookupResource((pointer *)&pColormap, pAppGrp->default_colormap, + RT_COLORMAP, client, DixUseAccess); + if (rc != Success) + return rc; if (pColormap->pScreen != pScreen) return BadColor; if (pColormap->pVisual->vid != (pAppGrp->root_visual ? pAppGrp->root_visual : pScreen->rootVisual)) @@ -470,7 +472,7 @@ int ProcXagQuery( int n, rc; REQUEST_SIZE_MATCH (xXagQueryReq); - rc = dixLookupClient(&pClient, stuff->resource, client, DixUnknownAccess); + rc = dixLookupClient(&pClient, stuff->resource, client, DixGetAttrAccess); if (rc != Success) return rc; |