On Fri, Oct 18, 2019 at 09:16:36AM +0200, Miklos Szeredi wrote: > On Thu, Oct 17, 2019 at 6:48 PM Miklos Szeredi <mszer...@redhat.com> wrote: > > > Even simpler: allow O_PATH descriptors for f*xattr(). > > Attached patch. Will post shortly. > > However, I think it would make sense to fix virtiofsd as well, as this > will take time to percolate down, even if Al doesn't find anything > wrong with it. > > Doing unshare(CLONE_FS) after thread startup seems safe, though must > be careful to change the working directory to the root of the mount > *before* starting any threads.
Thank you for extending O_PATH, that's great! This will be the cleanest way to perform xattr operations. If your patch is accepted I will send a man-pages.git patch to update the open(2) O_PATH documentation (with a minimum kernel version). I've added the unshare(CLONE_FS) task to my todo list in case no one else gets to it first. I may not have time to work on it before Novemeber though. Stefan
signature.asc
Description: PGP signature