Skip to content

RFC net: socket bind to file descriptor introduced

Stanislav Kinsbursky lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: cleanup unix_bind() a littlenet/unix/af_unix.c+5 -70 replies
2/5net: split unix_bind()net/unix/af_unix.c+29 -230 replies
3/5net: new protocol operation fbind() introducedinclude/linux/net.h+2 -00 replies
4/5net: fbind() for unix sockets protocol operations introducednet/unix/af_unix.c+76 -20 replies
5/5syscall: sys_fbind() introducedarch/x86/syscalls/syscall_32.tbl arch/x86/syscalls/syscall_64.tbl include/linux/syscalls.h +2 more+31 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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.

The following series implements...

---

Stanislav Kinsbursky (5):
net: cleanup unix_bind() a little
net: split unix_bind()
net: new protocol operation fbind() introduced
net: fbind() for unix sockets protocol operations introduced
syscall: sys_fbind() introduced

 arch/x86/syscalls/syscall_32.tbl |    1 
 arch/x86/syscalls/syscall_64.tbl |    1 
 include/linux/net.h              |    2 +
 include/linux/syscalls.h         |    1 
 kernel/sys_ni.c                  |    3 +
 net/socket.c                     |   25 +++++++
 net/unix/af_unix.c               |  136 ++++++++++++++++++++++++++++++--------
 7 files changed, 140 insertions(+), 29 deletions(-)