mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 00:10:05 +01:00
XACE: Check the return value of the selection create hook call.
This commit is contained in:
parent
72f2197545
commit
056a2ce02c
1 changed files with 6 additions and 1 deletions
|
|
@ -206,7 +206,12 @@ ProcSetSelectionOwner(ClientPtr client)
|
|||
pSel->devPrivates = NULL;
|
||||
|
||||
/* 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;
|
||||
CurrentSelections = pSel;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue