From 2494ede1067d5071d3cc7d355cdc2ae3fac66dc5 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 11 Jan 2026 03:32:21 +0900 Subject: container/init: configure interface lo This enables loopback networking when owning the net namespace. Signed-off-by: Ophestra --- container/init.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'container/init.go') diff --git a/container/init.go b/container/init.go index 53fc5475..5516c422 100644 --- a/container/init.go +++ b/container/init.go @@ -170,6 +170,10 @@ func initEntrypoint(k syscallDispatcher, msg message.Msg) { offsetSetup = int(setupFd + 1) } + if !params.HostNet { + k.mustLoopback(msg) + } + // write uid/gid map here so parent does not need to set dumpable if err := k.setDumpable(SUID_DUMP_USER); err != nil { k.fatalf(msg, "cannot set SUID_DUMP_USER: %v", err) -- cgit v1.3.1