Paul Holzinger
77081df8cd
libpod: bind ports before network setup
...
We bind ports to ensure there are no conflicts and we leak them into
conmon to keep them open. However we bound the ports after the network
was set up so it was possible for a second network setup to overwrite
the firewall configs of a previous container as it failed only later
when binding the port. As such we must ensure we bind before the network
is set up.
This is not so simple because we still have to take care of
PostConfigureNetNS bool in which case the network set up happens after
we launch conmon. Thus we end up with two different conditions.
Also it is possible that we "leak" the ports that are set on the
container until the garbage collector will close them. This is not
perfect but the alternative is adding special error handling on each
function exit after prepare until we start conmon which is a lot of work
to do correctly.
Fixes https://issues.redhat.com/browse/RHEL-50746
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-07-30 14:39:08 +02:00
..
2024-07-12 15:11:34 +02:00
2024-02-08 09:35:39 -05:00
2024-04-17 08:23:50 -04:00
2017-11-01 11:24:59 -04:00
2024-01-04 11:53:38 +02:00
2024-04-19 09:52:14 +02:00
2024-02-08 09:35:39 -05:00
2024-04-19 09:52:14 +02:00
2024-07-15 11:41:28 +02:00
2024-07-11 09:39:56 -04:00
2024-04-19 09:52:14 +02:00
2024-02-08 09:35:39 -05:00
2024-07-23 07:28:23 -04:00
2024-02-08 09:35:39 -05:00
2024-06-21 10:07:55 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-12 09:13:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-04-17 08:23:51 -04:00
2024-06-24 18:52:02 +02:00
2024-07-30 14:39:08 +02:00
2024-01-04 11:53:38 +02:00
2024-07-30 14:39:08 +02:00
2024-01-04 11:53:38 +02:00
2024-07-12 15:11:34 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-04-08 11:36:50 +08:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-06-27 10:50:17 +02:00
2024-06-26 11:10:56 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-07-30 14:39:08 +02:00
2024-02-08 09:35:39 -05:00
2022-03-23 19:05:29 +01:00
2024-04-19 17:24:44 +02:00
2024-06-04 18:03:46 +02:00
2024-06-04 18:03:46 +02:00
2024-06-04 18:03:46 +02:00
2024-07-19 15:16:55 +02:00
2024-02-08 09:35:39 -05:00
2024-04-10 11:55:35 +02:00
2024-02-08 09:35:39 -05:00
2024-03-26 09:56:48 -04:00
2024-07-24 12:10:48 +02:00
2024-01-04 11:53:38 +02:00
2024-07-30 14:39:08 +02:00
2024-03-19 12:09:31 +01:00
2024-02-08 09:35:39 -05:00
2024-03-19 12:09:31 +01:00
2024-01-04 11:53:38 +02:00
2024-03-19 12:09:31 +01:00
2024-02-08 09:35:39 -05:00
2024-07-12 15:11:34 +02:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-07-30 14:39:08 +02:00
2024-02-12 09:13:39 -05:00
2024-02-02 11:02:43 -05:00
2024-02-02 11:02:43 -05:00
2024-06-21 18:01:26 +02:00
2024-06-21 18:01:26 +02:00
2024-01-04 11:53:38 +02:00
2024-02-12 09:13:39 -05:00
2024-07-30 14:39:08 +02:00
2024-02-12 09:13:39 -05:00
2024-06-12 15:48:36 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-07-22 10:30:42 +02:00
2024-05-29 11:10:55 +02:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-07-05 10:27:42 +02:00
2024-04-05 10:07:42 -04:00
2024-04-24 12:07:38 +08:00
2024-04-05 10:07:42 -04:00
2024-02-08 09:35:39 -05:00
2024-01-12 09:19:34 -05:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-04-23 11:16:40 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-04-19 09:52:14 +02:00
2024-02-08 09:35:39 -05:00
2024-07-09 11:15:29 +02:00
2024-07-15 11:41:28 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-07-22 12:59:00 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-04-13 15:20:19 +08:00
2024-04-13 15:20:19 +08:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-04-19 09:52:14 +02:00
2024-07-11 09:39:56 -04:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-05-22 17:47:01 -04:00
2024-05-22 17:47:01 -04:00