darling icon indicating copy to clipboard operation
darling copied to clipboard

Implement networking ioctls for launchd

Open LubosD opened this issue 8 years ago • 4 comments

launchd tries to setup networking - loopback specifically (lo0), throws assertion failures currently.

ioctls:

  • SIOCGIFFLAGS
  • SIOCSIFFLAGS
  • SIOCAIFADDR
  • SIOCAIFADDR_IN6

LubosD avatar Apr 21 '17 09:04 LubosD

Given that we don't want to have separate networking from the host, I'd say that the dummy ioctls are enough.

facekapow avatar Jul 05 '21 13:07 facekapow

At some point we wanted an option to toggle between "share networking with the host" and "have a Darling container run in its own network namespace". Not sure if we still want that though.

bugaevc avatar Jul 05 '21 13:07 bugaevc

It is definitely interesting for Docker usage, because Docker defaults to having distinct network hosts for containers.

LubosD avatar Jul 05 '21 13:07 LubosD

But in case of Docker we also would want for the Darling container to share networking with "the host" (i.e. the Docker container), not to create another nested namespace with its own networking.

bugaevc avatar Jul 05 '21 13:07 bugaevc