# Re: Re: \[PATCH v6 01/10\] file: Export receive\_fd() to modules

- From: Yongji Xie \<hidden\>
- Date: 2021-03-31 11:34:49 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/03/202942
- Thread: https://ratatoskr.run/netdev/2021/03/202922/t.md

```text
On Wed, Mar 31, 2021 at 5:15 PM Christian Brauner
[ref] wrote:
>
> On Wed, Mar 31, 2021 at 04:05:10PM +0800, Xie Yongji wrote:
> > 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 <redacted>
> > ---
>
> Yeah, as I said in the other mail I'd be comfortable with exposing just
> this variant of the helper.

Thanks, I got it now.

> Maybe this should be a separate patch bundled together with Christoph's
> patch to split parts of receive_fd() into a separate helper.

Do we need to add the seccomp notifier into the separate helper? In
our case, the file passed to the separate helper is from another
process.

Thanks,
Yongji
```
