Use receive_fd() to receive file from another process instead of
combination of get_unused_fd_flags() and fd_install(). This simplifies
the logic and also makes sure we don't miss any security stuff.
Signed-off-by: Xie Yongji
---
drivers/android/binder.c | 4 ++--
1 file changed, 2 inser
Export receive_fd() so that some modules can use
it to pass file descriptor across processes without
missing any security stuffs.
Signed-off-by: Xie Yongji
---
fs/file.c| 6 ++
include/linux/file.h | 7 +++
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/fs
ernel.org/linux-fsdevel/20210331080519.172-1-xieyon...@bytedance.com/
[2] https://lore.kernel.org/linux-fsdevel/20210325082209.1067987-2-...@lst.de
Xie Yongji (2):
file: Export receive_fd() to modules
binder: Use receive_fd() to receive file from another process
drivers/android/binder.c | 4