net: allow specific fd selection for __sys_accept4_file()
authorJens Axboe <axboe@kernel.dk>
Wed, 4 Mar 2020 15:07:32 +0000 (08:07 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 4 Mar 2020 20:11:27 +0000 (13:11 -0700)
commit6a91ef5209d770ec01c5e9005182e66ff5f333d5
tree299df34a94368a36838ade2cec240c501f4435e7
parenta141216cd154aa76752e0bdeb6c590bf641aaae7
net: allow specific fd selection for __sys_accept4_file()

Add SOCK_SPECIFIC_FD to mirror O_SPECIFIC_FD, and allow passing in this
flag to __sys_accept4_file(), along with the fd to be used.

Any other caller of __sys_accept4_file() disallows this flag, as it can't
be used outside of io_uring by the existing system calls.

Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/linux/net.h
include/linux/socket.h
net/socket.c