xselinux: Remove synthetic bit when looking up event type.

This commit is contained in:
Eamon Walsh 2007-10-23 14:46:37 -04:00 committed by Eamon Walsh
parent d7db549db4
commit 660557593e

View File

@ -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 */