diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2009-05-11 15:27:46 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2009-05-11 15:29:39 -0400 |
commit | a9f85dcefbadfe44d8c58ad08430aaadb8c59d34 (patch) | |
tree | ab256da8c65c9afe4360e4918cda563c3c3d287d | |
parent | 0fbf6f30f771e60714fb3003a9bb1a6b79e50c6e (diff) |
xselinux: Relax ownership restriction on SetSelectionUseContext.
Instead, clients should keep track of the selection instances they use.
(cherry picked from commit 0952d12717031e9dda9e48123bb922d0f4e81834)
Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
-rw-r--r-- | Xext/xselinux.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Xext/xselinux.c b/Xext/xselinux.c index 2a32bb857..6c99c2944 100644 --- a/Xext/xselinux.c +++ b/Xext/xselinux.c @@ -1349,15 +1349,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); |