Re: [PATCH] nsfs: add NS_GET_INIT_PID ioctl

From: Michael Kerrisk (man-pages)
Date: Thu Jun 18 2020 - 05:03:48 EST


On Thu, 18 Jun 2020 at 10:45, Christian Brauner
<christian.brauner@xxxxxxxxxx> wrote:
>
> Add an ioctl() to return the PID of the init process/child reaper of a pid
> namespace as seen in the caller's pid namespace.

What are the pros and cons of returning a PID FD instead of a PID?

Thanks,

Michael