XACE: Check the return value of the selection create hook call.
This commit is contained in:
parent
72f2197545
commit
056a2ce02c
|
@ -206,7 +206,12 @@ ProcSetSelectionOwner(ClientPtr client)
|
||||||
pSel->devPrivates = NULL;
|
pSel->devPrivates = NULL;
|
||||||
|
|
||||||
/* security creation/labeling check */
|
/* security creation/labeling check */
|
||||||
(void)XaceHookSelectionAccess(client, &pSel, DixCreateAccess);
|
rc = XaceHookSelectionAccess(client, &pSel,
|
||||||
|
DixCreateAccess|DixSetAttrAccess);
|
||||||
|
if (rc != Success) {
|
||||||
|
xfree(pSel);
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
pSel->next = CurrentSelections;
|
pSel->next = CurrentSelections;
|
||||||
CurrentSelections = pSel;
|
CurrentSelections = pSel;
|
||||||
|
|
Loading…
Reference in New Issue