Re: [PATCH] nsfs: add NS_GET_INIT_PID ioctl

2020-07-10 Thread Christian Brauner
On Fri, Jul 10, 2020 at 07:58:36AM -0400, Qian Cai wrote: > On Thu, Jun 18, 2020 at 10:45:43AM +0200, Christian Brauner 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. > > > > LXCFS is a tiny fuse

Re: [PATCH] nsfs: add NS_GET_INIT_PID ioctl

2020-07-10 Thread Qian Cai
On Thu, Jun 18, 2020 at 10:45:43AM +0200, Christian Brauner 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. > > LXCFS is a tiny fuse filesystem used to virtualize various aspects of > procfs. It is used

Re: [PATCH] nsfs: add NS_GET_INIT_PID ioctl

2020-06-18 Thread Christian Brauner
On Thu, Jun 18, 2020 at 11:03:25AM +0200, Michael Kerrisk (man-pages) wrote: > On Thu, 18 Jun 2020 at 10:45, Christian Brauner > 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

Re: [PATCH] nsfs: add NS_GET_INIT_PID ioctl

2020-06-18 Thread Michael Kerrisk (man-pages)
On Thu, 18 Jun 2020 at 10:45, Christian Brauner 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

[PATCH] nsfs: add NS_GET_INIT_PID ioctl

2020-06-18 Thread Christian Brauner
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. LXCFS is a tiny fuse filesystem used to virtualize various aspects of procfs. It is used actively by a large number of users including ChromeOS and cloud providers. LXCFS is