From 660557593ea961948722298ea8ffba83891c9914 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Tue, 23 Oct 2007 14:46:37 -0400 Subject: [PATCH] xselinux: Remove synthetic bit when looking up event type. --- Xext/xselinux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Xext/xselinux.c b/Xext/xselinux.c index 183a047dc..ef5be571f 100644 --- a/Xext/xselinux.c +++ b/Xext/xselinux.c @@ -133,10 +133,11 @@ static pointer truep = (pointer)1; * Looks up the SID corresponding to the given event type */ static int -SELinuxEventToSID(int type, SELinuxStateRec *sid_return) +SELinuxEventToSID(unsigned type, SELinuxStateRec *sid_return) { const char *name = LookupEventName(type); security_context_t con; + type &= 127; if (type >= numKnownEvents) { /* Need to increase size of classes array */