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

2 messages, 2 authors, 2012-08-15 · open the first message on its own page

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

From: Ben Pfaff <hidden>
Date: 2012-08-15 17:19:36

Stanislav Kinsbursky [off-list ref] 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".

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

From: "H. Peter Anvin" <hpa@zytor.com>
Date: 2012-08-15 17:54:49

On 08/15/2012 09:52 AM, Ben Pfaff wrote:
Stanislav Kinsbursky [off-list ref] writes:
quoted
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".
The really hard part is what to do with things that are supposed to
return a struct sockaddr.  I also have some reservations about using a
new system call to deal with what at least theoretically is only part of
one socket domain.

	-hpa
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help