moby/libnetwork/osl
Rob Murray fde80fe2e7 Restore the SetKey prestart hook.
Partially reverts 0046b16 "daemon: set libnetwork sandbox key w/o OCI hook"

Running SetKey to store the OCI Sandbox key after task creation, rather
than from the OCI prestart hook, meant it happened after sysctl settings
were applied by the runtime - which was the intention, we wanted to
complete Sandbox configuration after IPv6 had been disabled by a sysctl
if that was going to happen.

But, it meant '--sysctl' options for a specfic network interface caused
container task creation to fail, because the interface is only moved into
the network namespace during SetKey.

This change restores the SetKey prestart hook, and regenerates config
files that depend on the container's support for IPv6 after the task has
been created. It also adds a regression test that makes sure it's possible
to set an interface-specfic sysctl.

Signed-off-by: Rob Murray <rob.murray@docker.com>
2024-03-25 19:35:55 +00:00
..
kernel migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
interface_linux.go Detect IPv6 support in containers. 2024-01-19 20:24:07 +00:00
interface_unsupported.go libnetwork/osl: remove Interface Interface 2023-08-23 20:13:15 +02:00
namespace_linux.go Restore the SetKey prestart hook. 2024-03-25 19:35:55 +00:00
namespace_unsupported.go libnetwork/osl: remove Sandbox and Info interfaces 2023-08-23 23:29:09 +02:00
namespace_windows.go libnetwork/osl: remove Sandbox and Info interfaces 2023-08-23 23:29:09 +02:00
neigh_linux.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
neigh_unsupported.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
options_linux.go libnetwork/osl: make constructing Interfaces more atomic 2023-09-20 12:45:40 +02:00
route_linux.go libnetwork/osl: Namespace: inline setGateway and setGatewayIPv6 2023-09-20 12:38:26 +02:00
sandbox.go libnetwork/osl: remove Sandbox and Info interfaces 2023-08-23 23:29:09 +02:00
sandbox_freebsd.go libnetwork/osl: remove Sandbox and Info interfaces 2023-08-23 23:29:09 +02:00
sandbox_linux_test.go libnetwork: fix some unclosed file-handles in tests 2024-01-22 21:43:29 +01:00
sandbox_unsupported.go libnetwork/osl: remove Sandbox and Info interfaces 2023-08-23 23:29:09 +02:00