[PATCH 2/2] binder: Use receive_fd() to receive file from another process
xieyongji at bytedance.com
Thu Apr 1 10:12:51 UTC 2021
On Thu, Apr 1, 2021 at 5:54 PM Greg KH <gregkh at linuxfoundation.org> wrote:
> On Thu, Apr 01, 2021 at 05:09:32PM +0800, Xie Yongji wrote:
> > 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.
> But no logic is simplified here, and nothing is "missed", so I do not
> understand this change at all.
I noticed that we have security_binder_transfer_file() when we
transfer some fds. I'm not sure whether we need something like
More information about the devel