summaryrefslogtreecommitdiff
path: root/Xext/xselinux_ext.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2010-01-06 12:52:51 -0500
committerEamon Walsh <ewalsh@tycho.nsa.gov>2010-02-22 17:04:33 -0500
commiteb9210097efea81065c301e5b6b4da7a566deb4a (patch)
treef76b049052f85732aa84a604219cba6d1f304ca3 /Xext/xselinux_ext.c
parent0c4b75a08922416050bb73d2e279ce938d3823e7 (diff)
xselinux: Remove reference counting calls for SID objects.
Starting with libselinux 2.0.86, SID objects are no longer reference counted and the sidput() and sidget() calls are no-ops. Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Xext/xselinux_ext.c')
-rw-r--r--Xext/xselinux_ext.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Xext/xselinux_ext.c b/Xext/xselinux_ext.c
index b36fb13eb..dc27c92ed 100644
--- a/Xext/xselinux_ext.c
+++ b/Xext/xselinux_ext.c
@@ -132,7 +132,6 @@ ProcSELinuxSetCreateContext(ClientPtr client, unsigned offset)
ptr = dixLookupPrivate(privPtr, subjectKey);
pSid = (security_id_t *)(ptr + offset);
- sidput(*pSid);
*pSid = NULL;
rc = Success;
@@ -193,11 +192,9 @@ ProcSELinuxSetDeviceContext(ClientPtr client)
}
subj = dixLookupPrivate(&dev->devPrivates, subjectKey);
- sidput(subj->sid);
subj->sid = sid;
obj = dixLookupPrivate(&dev->devPrivates, objectKey);
- sidput(obj->sid);
- sidget(obj->sid = sid);
+ obj->sid = sid;
rc = Success;
out: