Guoyi Tu 
		9cbda7b354 
		
	 
	
	
	vhost-user: Call qemu_socketpair() instead of socketpair() ... 
			As the close-on-exec flags is not set on the file descriptors returned
by socketpair() at default, the fds will survive across exec' function.
In the case that exec' function get invoked, such as the live-update feature
which is been developing, it will cause fd leaks.
To address this problem, we should call qemu_socketpair() to create an pair of
connected sockets with the close-on-exec flag set.
Signed-off-by: Guoyi Tu <tugy@chinatelecom.cn>
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <7002b12a5fb0a30cd878e14e07da61c36da72913.1661240709.git.tugy@chinatelecom.cn> 
		
	 
		2022-09-29 14:38:05 +04:00 
	 
	
	
		 
	
	
		
			
			
			
			
			
			2022-06-26 18:40:28 +01:00 
		 
	
		
			
			
			
			
			
			2022-09-27 07:32:31 +02:00 
		 
	
		
			
			
			
			
			
			2020-06-30 22:54:24 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-06-30 22:54:24 +02:00 
		 
	
		
			
			
			
			
			
			2022-03-18 10:15:57 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-26 14:09:44 +01:00 
		 
	
		
			
			
			
			
			
			2020-05-04 11:17:27 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2022-04-06 14:31:55 +02:00 
		 
	
		
			
			
			
			
			
			2018-10-15 09:57:33 +02:00 
		 
	
		
			
			
			
			
			
			2022-03-18 10:15:57 +01:00 
		 
	
		
			
			
			
			
			
			2017-03-27 12:14:45 +02:00 
		 
	
		
			
			
			
			
			
			2017-03-17 10:23:44 +01:00 
		 
	
		
			
			
			
			
			
			2022-03-18 10:15:57 +01:00 
		 
	
		
			
			
			
			
			
			2020-05-28 11:38:57 +02:00 
		 
	
		
			
			
			
			
			
			2022-03-04 11:31:46 +01:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2020-11-02 16:52:17 +00:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2015-07-24 13:57:45 +02:00 
		 
	
		
			
			
			
			
			
			2021-07-02 17:35:08 +02:00 
		 
	
		
			
			
			
			
			
			2022-02-21 13:30:20 +00:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2022-01-13 10:58:54 +01:00 
		 
	
		
			
			
			
			
			
			2022-03-09 09:29:10 +00:00 
		 
	
		
			
			
			
			
			
			2022-01-13 10:58:54 +01:00 
		 
	
		
			
			
			
			
			
			2021-05-02 17:24:51 +02:00 
		 
	
		
			
			
			
			
			
			2022-02-21 10:18:06 +01:00 
		 
	
		
			
			
			
			
			
			2021-03-06 13:30:38 +00:00 
		 
	
		
			
			
			
			
			
			2022-04-06 10:50:37 +02:00 
		 
	
		
			
			
			
			
			
			2021-03-14 13:14:55 +00:00 
		 
	
		
			
			
			
			
			
			2022-04-06 10:50:37 +02:00 
		 
	
		
			
			
			
			
			
			2021-02-04 14:32:40 +01:00 
		 
	
		
			
			
			
			
			
			2022-04-07 12:30:54 +02:00 
		 
	
		
			
			
			
			
			
			2022-06-06 09:26:53 +02:00 
		 
	
		
			
			
			
			
			
			2022-03-22 14:40:51 +04:00 
		 
	
		
			
			
			
			
			
			2020-09-09 09:27:09 -04:00 
		 
	
		
			
			
			
			
			
			2020-05-18 15:43:51 +02:00 
		 
	
		
			
			
			
			
			
			2022-06-30 09:21:14 +02:00 
		 
	
		
			
			
			
			
			
			2021-07-08 14:15:01 -05:00 
		 
	
		
			
			
			
			
			
			2022-06-30 09:21:14 +02:00 
		 
	
		
			
			
			
			
			
			2020-12-10 12:15:03 -05:00 
		 
	
		
			
			
			
			
			
			2022-03-21 15:44:44 +01:00 
		 
	
		
			
			
			
			
			
			2022-04-06 14:31:55 +02:00 
		 
	
		
			
			
			
			
			
			2022-04-22 11:47:08 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-21 06:18:24 -04:00 
		 
	
		
			
			
			
			
			
			2022-03-18 10:15:57 +01:00 
		 
	
		
			
			
			
			
			
			2019-05-13 08:58:55 +02:00 
		 
	
		
			
			
			
			
			
			2019-09-19 10:37:46 +02:00 
		 
	
		
			
			
			
			
			
			2019-09-19 10:37:46 +02:00 
		 
	
		
			
			
			
			
			
			2022-03-18 10:15:57 +01:00 
		 
	
		
			
			
			
			
			
			2022-03-18 10:15:57 +01:00 
		 
	
		
			
			
			
			
			
			2022-03-18 10:15:57 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-28 15:36:17 +02:00 
		 
	
		
			
			
			
			
			
			2022-06-06 09:26:53 +02:00 
		 
	
		
			
			
			
			
			
			2022-09-29 14:38:05 +04:00 
		 
	
		
			
			
			
			
			
			2022-06-06 09:26:53 +02:00 
		 
	
		
			
			
			
			
			
			2022-06-14 10:34:37 +02:00 
		 
	
		
			
			
			
			
			
			2022-06-06 09:26:53 +02:00 
		 
	
		
			
			
			
			
			
			2022-06-06 09:26:53 +02:00 
		 
	
		
			
			
			
			
			
			2022-06-06 09:26:53 +02:00 
		 
	
		
			
			
			
			
			
			2021-11-05 12:29:19 +01:00 
		 
	
		
			
			
			
			
			
			2022-04-06 14:31:55 +02:00 
		 
	
		
			
			
			
			
			
			2021-12-21 10:50:21 +04:00 
		 
	
		
			
			
			
			
			
			2022-09-27 07:32:31 +02:00 
		 
	
		
			
			
			
			
			
			2022-06-06 09:26:53 +02:00 
		 
	
		
			
			
			
			
			
			2022-06-14 10:34:37 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2022-04-22 11:47:08 +02:00 
		 
	
		
			
			
			
			
			
			2022-06-14 10:34:37 +02:00 
		 
	
		
			
			
			
			
			
			2022-08-08 11:40:06 +02:00