summaryrefslogtreecommitdiff
path: root/Xext/xselinux.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2009-05-11 15:27:46 -0400
committerEamon Walsh <ewalsh@tycho.nsa.gov>2009-05-11 15:27:46 -0400
commit0952d12717031e9dda9e48123bb922d0f4e81834 (patch)
treead905b7f6415a7eadb7c4bed0bcf07a4c0838048 /Xext/xselinux.c
parentac13145dbcb284293582435409d8a90f276785c5 (diff)
xselinux: Relax ownership restriction on SetSelectionUseContext.
Instead, clients should keep track of the selection instances they use.
Diffstat (limited to 'Xext/xselinux.c')
-rw-r--r--Xext/xselinux.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Xext/xselinux.c b/Xext/xselinux.c
index 2c7262140..3a6f0960d 100644
--- a/Xext/xselinux.c
+++ b/Xext/xselinux.c
@@ -1346,15 +1346,6 @@ ProcSELinuxSetCreateContext(ClientPtr client, unsigned offset)
goto out;
privPtr = &serverClient->devPrivates;
}
- else if (offset == USE_SEL) {
- /* Selection use context currently requires no selections owned */
- Selection *pSel;
- for (pSel = CurrentSelections; pSel; pSel = pSel->next)
- if (pSel->client == client) {
- rc = BadMatch;
- goto out;
- }
- }
ptr = dixLookupPrivate(privPtr, subjectKey);
pSid = (security_id_t *)(ptr + offset);