netcat: veiled filesystem prevents access to remote end socket

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

netcat: veiled filesystem prevents access to remote end socket

astian
netcat tries to associate a datagram unix socket to the remote end by
calling connect(), but the path of that remote end unix socket has not
been "unveiled" and furthermore is arbitrary so it cannot be
anticipated.

  $ nc -vUul /tmp/a &
  Bound on /tmp/a
  $ echo asd | nc -vUu /tmp/a
  Bound on /tmp/nc.GkQsJd0M7B
  nc: connect: No such file or directory <-- this is the server dying

Cheers.