Albin Kerouanton
52fae09ec0
libnet/pms/nat: don't bind IPv6 ports if not supported by port driver
...
In rootless mode, the Engine needs to call the rootless port driver to
know which IP address it should bind to inside of its network namespace.
The slirp4netns port drivers doesn't support binding to IPv6 address, so
we need to detect that before listening on the port.
Before commit 201968cc0 , this wasn't a problem because the Engine was
binding the port, then calling rootless port driver to learn whether the
proto/IP family was supported, and listen on the port if so.
Starting with that commit, the Engine does bind + listen in one go, and
then calls the port driver — this is too late. Fix the bug by checking
if the port driver supports the PortBindingReq, and only allocate the
port if so.
Signed-off-by: Albin Kerouanton <albin.kerouanton@docker.com >
2025-11-28 19:40:34 +01:00
..
2025-10-24 07:56:57 -05:00
2025-11-13 20:52:15 +01:00
2025-11-13 15:00:05 -05:00
2025-11-24 16:51:14 +00:00
2025-11-10 16:08:15 +01:00
2025-11-13 20:52:15 +01:00
2025-11-09 22:38:59 +01:00
2025-09-01 16:16:28 +02:00
2025-11-13 20:52:15 +01:00
2025-05-30 15:59:13 +02:00
2025-11-12 14:34:12 +01:00
2025-11-28 19:40:34 +01:00
2025-10-03 17:30:42 -05:00
2025-07-31 10:13:29 -07:00
2025-10-27 12:39:21 +01:00
2025-07-31 10:13:29 -07:00
2025-10-30 17:11:38 -04:00
2025-11-12 07:53:46 -08:00
2025-11-13 20:52:15 +01:00
2025-07-31 10:13:29 -07:00
2025-10-27 16:39:32 +01:00
2025-04-07 16:19:02 +02:00
2025-11-10 13:13:22 +01:00
2025-05-30 15:59:13 +02:00
2025-07-22 18:48:39 +02:00
2025-07-31 10:13:29 -07:00
2025-07-13 16:37:36 +02:00
2025-07-31 10:13:29 -07:00
2025-09-19 16:02:14 +02:00
2025-07-31 10:13:29 -07:00
2025-10-09 20:13:26 -04:00
2025-07-31 10:13:29 -07:00
2025-07-21 09:30:05 -07:00
2025-08-08 19:19:21 +02:00
2025-09-19 16:02:14 +02:00
2025-09-05 10:20:06 +02:00
2025-09-11 15:25:14 -04:00
2025-10-27 23:46:28 +01:00
2025-07-21 09:30:05 -07:00
2025-07-31 10:13:29 -07:00
2025-11-24 14:14:27 +00:00
2025-10-03 21:39:14 +02:00
2025-08-08 17:07:07 +02:00
2025-11-24 14:14:27 +00:00
2025-10-03 17:30:42 -05:00
2025-07-31 10:13:29 -07:00
2025-11-16 18:25:06 +00:00
2025-07-29 11:16:25 +02:00
2025-08-08 19:19:21 +02:00
2025-04-22 11:31:10 +02:00
2025-11-16 18:25:42 +00:00
2025-11-16 18:25:42 +00:00
2025-11-16 18:25:42 +00:00
2025-09-08 10:08:35 +02:00
2025-08-01 14:48:05 +02:00
2025-10-03 17:30:42 -05:00
2025-10-25 16:13:30 +02:00
2025-11-25 19:30:27 +00:00
2025-08-08 17:07:07 +02:00
2025-05-30 15:59:13 +02:00
2025-11-16 18:20:12 +00:00
2025-11-26 15:40:08 +01:00
2025-07-31 10:13:29 -07:00
2025-05-30 15:59:13 +02:00
2025-07-31 10:13:29 -07:00
2025-09-19 15:33:36 +01:00
2025-11-10 16:08:12 +01:00
2025-05-30 15:59:13 +02:00
2025-06-05 14:44:18 +00:00
2025-07-31 10:13:29 -07:00
2025-08-13 16:59:39 +02:00
2025-11-13 20:52:15 +01:00
2023-08-23 15:47:43 +02:00
2025-10-25 16:13:30 +02:00
2025-08-08 17:07:07 +02:00
2025-10-08 12:06:26 -04:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-09-19 16:02:14 +02:00
2025-09-19 16:02:14 +02:00
2025-09-19 15:33:36 +01:00
2025-11-10 16:08:15 +01:00
2025-11-12 07:53:46 -08:00
2025-11-12 07:53:46 -08:00
2025-05-30 15:59:13 +02:00
2025-11-13 20:52:15 +01:00
2025-11-13 10:05:49 +01:00
2025-11-13 10:05:49 +01:00
2025-05-30 15:59:13 +02:00
2025-10-31 17:00:33 +09:00
2025-10-31 02:09:38 +01:00
2025-10-31 02:09:38 +01:00
2025-08-26 20:18:57 +02:00
2025-10-21 09:15:18 +02:00
2025-08-26 20:18:57 +02:00
2025-11-10 16:08:12 +01:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-09-19 16:02:14 +02:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-11-13 20:52:15 +01:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-11-13 20:52:15 +01:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-07-21 09:30:05 -07:00
2025-09-19 16:02:14 +02:00
2025-07-31 10:13:29 -07:00
2025-10-05 13:41:22 +02:00
2025-11-10 16:08:12 +01:00
2025-09-19 16:02:14 +02:00
2025-10-30 19:41:58 +01:00
2025-10-03 21:39:14 +02:00
2025-07-31 10:13:29 -07:00
2025-11-25 19:30:27 +00:00
2025-09-25 22:53:48 +02:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-10-05 13:41:22 +02:00
2025-10-25 16:13:30 +02:00
2025-11-05 15:48:02 +01:00
2025-09-25 22:53:48 +02:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-08-08 19:19:21 +02:00
2025-10-29 18:42:36 +01:00
2025-09-25 22:53:48 +02:00
2025-07-31 10:13:29 -07:00
2025-09-19 16:02:14 +02:00
2025-08-08 17:07:07 +02:00
2025-08-08 17:07:07 +02:00
2025-08-08 17:07:07 +02:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-07-21 09:30:05 -07:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-09-19 16:02:14 +02:00
2025-08-08 21:41:17 +02:00
2025-09-19 15:33:36 +01:00
2025-07-31 10:13:29 -07:00
2025-05-16 10:23:49 -04:00
2025-10-27 16:39:32 +01:00
2025-10-27 16:39:32 +01:00
2025-10-27 16:39:32 +01:00
2025-09-19 16:02:14 +02:00
2025-05-30 15:59:13 +02:00
2025-09-19 16:02:14 +02:00
2025-09-19 16:02:14 +02:00
2025-09-19 16:02:14 +02:00
2025-07-21 09:30:05 -07:00
2025-09-16 13:08:36 +02:00
2025-07-31 10:13:29 -07:00
2025-09-19 16:02:14 +02:00
2025-07-21 09:30:05 -07:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-07-31 10:13:29 -07:00
2025-11-16 18:25:06 +00:00
2025-09-19 16:02:14 +02:00
2025-08-01 01:48:55 +02:00