From 238645f6de1f51d50f8e8000739b19194d884cbc Mon Sep 17 00:00:00 2001 From: Otto Bittner Date: Thu, 8 Feb 2024 12:56:30 +0000 Subject: [PATCH] hostnet: stub SIOCGIFADDR mpirun requires this syscall. If mpirun is not actually used, i.e. no multinode processing, making the call succeed without doing anything is enough to make it work. --- pkg/sentry/socket/hostinet/socket_unsafe.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/sentry/socket/hostinet/socket_unsafe.go b/pkg/sentry/socket/hostinet/socket_unsafe.go index 3a9a7a188f..b90f758917 100644 --- a/pkg/sentry/socket/hostinet/socket_unsafe.go +++ b/pkg/sentry/socket/hostinet/socket_unsafe.go @@ -91,6 +91,8 @@ func ioctl(ctx context.Context, fd int, io usermem.IO, sysno uintptr, args arch. } _, err := ifr.CopyOut(cc, args[2].Pointer()) return 0, err + case linux.SIOCGIFADDR: + return 0, nil case linux.SIOCGIFCONF: cc := &usermem.IOCopyContext{ Ctx: ctx,