Re: [RFC PATCH 0/5] net: socket bind to file descriptor introduced

From: Ben Pfaff
Date: Wed Aug 15 2012 - 13:19:27 EST


Stanislav Kinsbursky <skinsbursky@xxxxxxxxxxxxx> writes:

> This system call is especially required for UNIX sockets, which has name
> lenght limitation.

The worst of the name length limitations can be worked around by
opening the directory where the socket is to go as a file
descriptor, then using /proc/self/fd/<fd>/<basename> as the name
of the socket. This technique also works with "connect" and in
other contexts where a struct sockaddr is needed. At first
glance, it looks like your patches only help with "bind".
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/