Re: Use of unshare(CLONE_FS) in virtiofsd

2022-11-04 Thread Florian Weimer
* Vivek Goyal: >> The usual >> recommendation for emulating it is to use openat with O_PATH, and then >> use getxattr on the virtual /proc/self/fd path. This needs an >> additional system call (openat, getxattr, close instead of fchdir, >> getxattr), > > openat(O_PATH) + getxattr(/proc/self/fd)

Re: Use of unshare(CLONE_FS) in virtiofsd

2022-11-04 Thread Vivek Goyal
On Fri, Nov 04, 2022 at 08:50:45AM +0100, Florian Weimer wrote: > I've got a proposed extension for glibc's pthread_create which allows > the creation of threads with a dedicated current working > directory/umask/chroot: > > [PATCH 0/2] Introduce per-thread file system properties on Linux >

Use of unshare(CLONE_FS) in virtiofsd

2022-11-04 Thread Florian Weimer
I've got a proposed extension for glibc's pthread_create which allows the creation of threads with a dedicated current working directory/umask/chroot: [PATCH 0/2] Introduce per-thread file system properties on Linux I expe