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
 | 
					 * Looks up the SID corresponding to the given event type
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
static int
 | 
					static int
 | 
				
			||||||
SELinuxEventToSID(int type, SELinuxStateRec *sid_return)
 | 
					SELinuxEventToSID(unsigned type, SELinuxStateRec *sid_return)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    const char *name = LookupEventName(type);
 | 
					    const char *name = LookupEventName(type);
 | 
				
			||||||
    security_context_t con;
 | 
					    security_context_t con;
 | 
				
			||||||
 | 
					    type &= 127;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (type >= numKnownEvents) {
 | 
					    if (type >= numKnownEvents) {
 | 
				
			||||||
	/* Need to increase size of classes array */
 | 
						/* Need to increase size of classes array */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue