Files
Doug Rabson f06869168e libpod: Use O_CLOEXEC for descriptors returned by (*Container).openDirectory
Since mountStorage and createNetNS run in parallel, the directory file
descriptors used by mountStorage were (rarely) propagated to the CNI
plugins. On FreeBSD, the CNI bridge plugin needs to make changes to the
network jail. This fails if there are any descriptors to open directories
to protect against host directories being visible to the jail's chroot.

Adding O_CLOEXEC to the unix.Open call in openDirectory ensures that these
descriptors are not visible to podman's child processes.

[NO NEW TESTS NEEDED]

Signed-off-by: Doug Rabson <dfr@rabson.org>
2022-11-26 13:55:18 +00:00
..
2022-10-17 09:19:41 +02:00
2022-01-18 12:47:07 +01:00
2022-10-17 09:19:41 +02:00
2022-09-10 07:52:00 -04:00
2022-01-18 12:47:07 +01:00
2022-09-10 07:52:00 -04:00
2022-09-20 15:34:27 -04:00
2022-09-10 07:52:00 -04:00
2022-09-10 07:52:00 -04:00
2022-09-10 07:52:00 -04:00
2022-09-10 07:52:00 -04:00
2022-04-25 13:23:20 +02:00
2022-09-01 13:02:01 -04:00
2022-10-17 09:19:41 +02:00
2022-01-18 12:47:07 +01:00
2022-07-21 14:50:01 -04:00
2022-09-20 15:34:27 -04:00
2022-09-10 07:52:00 -04:00
2022-09-20 15:34:27 -04:00
2022-10-17 09:19:41 +02:00
2022-09-10 07:52:00 -04:00
2022-01-18 12:47:07 +01:00