Skip to content

Commit

Permalink
hostnet: stub SIOCGIFADDR
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
derpsteb committed Feb 8, 2024
1 parent 9af5108 commit 238645f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/sentry/socket/hostinet/socket_unsafe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 238645f

Please sign in to comment.