summaryrefslogtreecommitdiff
path: root/dix/selection.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2008-02-29 17:55:31 -0500
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2008-02-29 18:01:37 -0500
commitcc76ea6e3ac6a405f0c198c4e62be40aa8d2b546 (patch)
tree54acaee702799d6911ca983817038aa792df4a39 /dix/selection.c
parent34bf308a9e66f1a2f48630a15b1802afad50ec24 (diff)
XACE: Add generic support for property and selection polyinstantiation.
Diffstat (limited to 'dix/selection.c')
-rw-r--r--dix/selection.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dix/selection.c b/dix/selection.c
index e2e279a6f..52b1611c5 100644
--- a/dix/selection.c
+++ b/dix/selection.c
@@ -80,7 +80,7 @@ dixLookupSelection(Selection **result, Atom selectionName,
for (i = 0; i < NumCurrentSelections; i++)
if (CurrentSelections[i].selection == selectionName) {
pSel = CurrentSelections + i;
- rc = XaceHookSelectionAccess(client, selectionName, access_mode);
+ rc = XaceHookSelectionAccess(client, &pSel, access_mode);
break;
}
@@ -206,6 +206,10 @@ ProcSetSelectionOwner(ClientPtr client)
pSel = CurrentSelections + NumCurrentSelections;
pSel->selection = stuff->selection;
pSel->devPrivates = NULL;
+
+ /* security creation/labeling check */
+ (void)XaceHookSelectionAccess(client, &pSel, DixCreateAccess);
+
pSel->next = NULL;
if (NumCurrentSelections > 0)
CurrentSelections[NumCurrentSelections - 1].next = pSel;