mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
xace: add new fields to resource access hook to allow parent resource objects
to be passed in at create time. Also added a missing devPrivates initializer.
This commit is contained in:
parent
ce9e83d913
commit
0003ccfcdf
13 changed files with 33 additions and 28 deletions
|
|
@ -1025,7 +1025,7 @@ ProcRenderCreateGlyphSet (ClientPtr client)
|
|||
return BadAlloc;
|
||||
/* security creation/labeling check */
|
||||
rc = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->gsid, GlyphSetType,
|
||||
DixCreateAccess, glyphSet);
|
||||
glyphSet, RT_NONE, NULL, DixCreateAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
if (!AddResource (stuff->gsid, GlyphSetType, (pointer)glyphSet))
|
||||
|
|
@ -1903,7 +1903,7 @@ static int ProcRenderCreateSolidFill(ClientPtr client)
|
|||
return error;
|
||||
/* security creation/labeling check */
|
||||
error = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->pid, PictureType,
|
||||
DixCreateAccess, pPicture);
|
||||
pPicture, RT_NONE, NULL, DixCreateAccess);
|
||||
if (error != Success)
|
||||
return error;
|
||||
if (!AddResource (stuff->pid, PictureType, (pointer)pPicture))
|
||||
|
|
@ -1937,7 +1937,7 @@ static int ProcRenderCreateLinearGradient (ClientPtr client)
|
|||
return error;
|
||||
/* security creation/labeling check */
|
||||
error = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->pid, PictureType,
|
||||
DixCreateAccess, pPicture);
|
||||
pPicture, RT_NONE, NULL, DixCreateAccess);
|
||||
if (error != Success)
|
||||
return error;
|
||||
if (!AddResource (stuff->pid, PictureType, (pointer)pPicture))
|
||||
|
|
@ -1972,7 +1972,7 @@ static int ProcRenderCreateRadialGradient (ClientPtr client)
|
|||
return error;
|
||||
/* security creation/labeling check */
|
||||
error = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->pid, PictureType,
|
||||
DixCreateAccess, pPicture);
|
||||
pPicture, RT_NONE, NULL, DixCreateAccess);
|
||||
if (error != Success)
|
||||
return error;
|
||||
if (!AddResource (stuff->pid, PictureType, (pointer)pPicture))
|
||||
|
|
@ -2006,7 +2006,7 @@ static int ProcRenderCreateConicalGradient (ClientPtr client)
|
|||
return error;
|
||||
/* security creation/labeling check */
|
||||
error = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->pid, PictureType,
|
||||
DixCreateAccess, pPicture);
|
||||
pPicture, RT_NONE, NULL, DixCreateAccess);
|
||||
if (error != Success)
|
||||
return error;
|
||||
if (!AddResource (stuff->pid, PictureType, (pointer)pPicture))
|
||||
|
|
|
|||
Loading…
Reference in a new issue