Re: [PATCH v6 09/11] fs/pipe.c: export create_pipe_files() and replace_fd()

From: Christoph Hellwig
Date: Wed Nov 29 2017 - 18:14:05 EST


On Tue, Nov 28, 2017 at 11:57:53PM +0200, Jarkko Sakkinen wrote:
> > Yes. You still shall not play nasty games with file descriptors.
>
> I need to put something to file descriptors in order to have a IO
> channels for the launch enclave hosting process.

Just do it like any other program - open it from your userspace
program using open() and related syscalls.