file: Export receive_fd() to modules
authorXie Yongji <xieyongji@bytedance.com>
Tue, 31 Aug 2021 10:36:24 +0000 (18:36 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 6 Sep 2021 11:20:56 +0000 (07:20 -0400)
commit9c930054f2f5326d59ee4bf8d7d1cf6c82f5643b
tree6306ff784fd8448edf9379b516d89ca96bdad559
parent7a6b92d33ab166c6ea6e5764033ca99dcb6ec361
file: Export receive_fd() to modules

Export receive_fd() so that some modules can use
it to pass file descriptor between processes without
missing any security stuffs.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210831103634.33-4-xieyongji@bytedance.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
fs/file.c
include/linux/file.h