xselinux: Remove synthetic bit when looking up event type.
This commit is contained in:
parent
d7db549db4
commit
660557593e
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user