net: split out functions related to registering inflight socket files
authorJens Axboe <axboe@kernel.dk>
Fri, 8 Feb 2019 16:01:44 +0000 (09:01 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Feb 2019 15:24:23 +0000 (08:24 -0700)
commitf4e65870e5cede5ca1ec0006b6c9803994e5f7b8
treeb8fb35e27f64bd350bb4166a2708d7f147719fa1
parentedafccee56ff31678a091ddb7219aba9b28bc3cb
net: split out functions related to registering inflight socket files

We need this functionality for the io_uring file registration, but
we cannot rely on it since CONFIG_UNIX can be modular. Move the helpers
to a separate file, that's always builtin to the kernel if CONFIG_UNIX is
m/y.

No functional changes in this patch, just moving code around.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/net/af_unix.h
net/Makefile
net/unix/Kconfig
net/unix/Makefile
net/unix/af_unix.c
net/unix/garbage.c
net/unix/scm.c [new file with mode: 0644]
net/unix/scm.h [new file with mode: 0644]