[Lxc-users] fail to connect to a af_unix socket created within LXC
Serge Hallyn
serge.hallyn at ubuntu.com
Fri Nov 8 15:00:47 UTC 2013
Quoting mohammed dahdouh (meodou at gmail.com):
> Hi all,
> I have a problem with running connecting to a unix domain socket
> created within a LXC container.
> The call to connect() fails with ECONNREFUSED (connection refused).
>
> Doing the inverse is working (af_unix socket created in the host and
> the client socket within the container).
>
> I m using lxc-0.7.5 + kernel 2.6.32.
> I found that a kernel with version >= 2.6.35 is needed (cf.
> http://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg01971.html
> ) how correct is that?
Odd question. It's correct. Specifically commit
6616f7888c6088324727363276f6de05a1dca6fc enabled it, but it depends on
some prior commits to make cross-namespace SCM credentials work
correctly. You can find them pretty easily looking through the git
history of net/unix.
More information about the lxc-users
mailing list