mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			525 B
		
	
	
	
		
			Diff
		
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			525 B
		
	
	
	
		
			Diff
		
	
	
| --- linux-4.9.37/net/ipv4/cipso_ipv4.c	2017-07-12 16:42:41.000000000 +0300
 | |
| +++ linux-4.9.y/net/ipv4/cipso_ipv4.c	2021-06-07 13:01:34.000000000 +0300
 | |
| @@ -1271,7 +1271,8 @@
 | |
|  			return ret_val;
 | |
|  		}
 | |
|  
 | |
| -		secattr->flags |= NETLBL_SECATTR_MLS_CAT;
 | |
| +		if (secattr->attr.mls.cat)
 | |
| +			secattr->flags |= NETLBL_SECATTR_MLS_CAT;
 | |
|  	}
 | |
|  
 | |
|  	return 0;
 | |
| @@ -1452,7 +1453,8 @@
 | |
|  			return ret_val;
 | |
|  		}
 | |
|  
 | |
| -		secattr->flags |= NETLBL_SECATTR_MLS_CAT;
 | |
| +		if (secattr->attr.mls.cat)
 | |
| +			secattr->flags |= NETLBL_SECATTR_MLS_CAT;
 | |
|  	}
 | |
|  
 | |
|  	return 0;
 |