mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
XACE: Check the return value of the selection create hook call.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user