Re: [PATCH 046/104] virtiofsd: use /proc/self/fd/ O_PATH file descriptor

2020-01-17 Thread Dr. David Alan Gilbert
* Philippe Mathieu-Daudé (phi...@redhat.com) wrote: > On 12/12/19 5:38 PM, Dr. David Alan Gilbert (git) wrote: > > From: Stefan Hajnoczi > > > > Sandboxing will remove /proc from the mount namespace so we can no > > longer build string paths into "/proc/self/fd/...". > > > > Keep an O_PATH file

Re: [PATCH 046/104] virtiofsd: use /proc/self/fd/ O_PATH file descriptor

2020-01-15 Thread Philippe Mathieu-Daudé
On 12/12/19 5:38 PM, Dr. David Alan Gilbert (git) wrote: From: Stefan Hajnoczi Sandboxing will remove /proc from the mount namespace so we can no longer build string paths into "/proc/self/fd/...". Keep an O_PATH file descriptor so we can still re-open fds via /proc/self/fd. Signed-off-by: St

[PATCH 046/104] virtiofsd: use /proc/self/fd/ O_PATH file descriptor

2019-12-12 Thread Dr. David Alan Gilbert (git)
From: Stefan Hajnoczi Sandboxing will remove /proc from the mount namespace so we can no longer build string paths into "/proc/self/fd/...". Keep an O_PATH file descriptor so we can still re-open fds via /proc/self/fd. Signed-off-by: Stefan Hajnoczi --- tools/virtiofsd/passthrough_ll.c | 129