mirror of
				https://github.com/strongswan/strongswan.git
				synced 2025-11-04 00:00:51 -05:00 
			
		
		
		
	capabilities: leak-detective using dlsym() does not need CAP_SYS_NICE anymore
This commit is contained in:
		
							parent
							
								
									b1bd63547b
								
							
						
					
					
						commit
						e8b2ce1e72
					
				@ -309,15 +309,9 @@ capabilities_t *capabilities_create()
 | 
			
		||||
		},
 | 
			
		||||
	);
 | 
			
		||||
 | 
			
		||||
#ifdef CAPABILITIES
 | 
			
		||||
#ifdef CAPABILITIES_LIBCAP
 | 
			
		||||
	this->caps = cap_init();
 | 
			
		||||
#endif /* CAPABILITIES_LIBCAP */
 | 
			
		||||
	if (lib->leak_detective)
 | 
			
		||||
	{
 | 
			
		||||
		keep(this, CAP_SYS_NICE);
 | 
			
		||||
	}
 | 
			
		||||
#endif /* CAPABILITIES */
 | 
			
		||||
 | 
			
		||||
#ifdef EMULATE_R_FUNCS
 | 
			
		||||
	this->mutex = mutex_create(MUTEX_TYPE_DEFAULT);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user