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

2012-10-08 Thread Stanislav Kinsbursky
06.10.2012 00:00, J. Bruce Fields пишет: On Tue, Sep 04, 2012 at 03:00:07PM -0400, bfields wrote: On Mon, Aug 20, 2012 at 02:18:13PM +0400, Stanislav Kinsbursky wrote: 16.08.2012 07:03, Eric W. Biederman пишет: Stanislav Kinsbursky writes: This patch set introduces new socket operation and

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

2012-10-05 Thread J. Bruce Fields
On Tue, Sep 04, 2012 at 03:00:07PM -0400, bfields wrote: > On Mon, Aug 20, 2012 at 02:18:13PM +0400, Stanislav Kinsbursky wrote: > > 16.08.2012 07:03, Eric W. Biederman пишет: > > >Stanislav Kinsbursky writes: > > > > > >>This patch set introduces new socket operation and new system call: > > >>sy

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

2012-09-04 Thread J. Bruce Fields
On Mon, Aug 20, 2012 at 02:18:13PM +0400, Stanislav Kinsbursky wrote: > 16.08.2012 07:03, Eric W. Biederman пишет: > >Stanislav Kinsbursky writes: > > > >>This patch set introduces new socket operation and new system call: > >>sys_fbind(), which allows to bind socket to opened file. > >>File to bi

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

2012-08-20 Thread Stanislav Kinsbursky
16.08.2012 07:03, Eric W. Biederman пишет: Stanislav Kinsbursky writes: This patch set introduces new socket operation and new system call: sys_fbind(), which allows to bind socket to opened file. File to bind to can be created by sys_mknod(S_IFSOCK) and opened by open(O_PATH). This system ca

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

2012-08-16 Thread J. Bruce Fields
On Wed, Aug 15, 2012 at 08:03:24PM -0700, Eric W. Biederman wrote: > Stanislav Kinsbursky writes: > > > This patch set introduces new socket operation and new system call: > > sys_fbind(), which allows to bind socket to opened file. > > File to bind to can be created by sys_mknod(S_IFSOCK) and op

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

2012-08-15 Thread Eric W. Biederman
Stanislav Kinsbursky writes: > This patch set introduces new socket operation and new system call: > sys_fbind(), which allows to bind socket to opened file. > File to bind to can be created by sys_mknod(S_IFSOCK) and opened by > open(O_PATH). > > This system call is especially required for UNIX

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

2012-08-15 Thread Eric W. Biederman
"H. Peter Anvin" writes: > On 08/15/2012 12:49 PM, Eric W. Biederman wrote: >> >> There is also the trick of getting a shorter directory name using >> /proc/self/fd if you are threaded and can't change the directory. >> >> The obvious choices at this point are >> - Teach bind and connect and af

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

2012-08-15 Thread H. Peter Anvin
On 08/15/2012 12:49 PM, Eric W. Biederman wrote: > > There is also the trick of getting a shorter directory name using > /proc/self/fd if you are threaded and can't change the directory. > > The obvious choices at this point are > - Teach bind and connect and af_unix sockets to take longer AF_UNI

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

2012-08-15 Thread Eric W. Biederman
Stanislav Kinsbursky writes: > This patch set introduces new socket operation and new system call: > sys_fbind(), which allows to bind socket to opened file. > File to bind to can be created by sys_mknod(S_IFSOCK) and opened by > open(O_PATH). > > This system call is especially required for UNIX

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

2012-08-15 Thread H. Peter Anvin
On 08/15/2012 09:52 AM, Ben Pfaff wrote: > Stanislav Kinsbursky 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

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

2012-08-15 Thread Ben Pfaff
Stanislav Kinsbursky 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// as the na

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

2012-08-15 Thread Stanislav Kinsbursky
This patch set introduces new socket operation and new system call: sys_fbind(), which allows to bind socket to opened file. File to bind to can be created by sys_mknod(S_IFSOCK) and opened by open(O_PATH). This system call is especially required for UNIX sockets, which has name lenght limitation.