Re: [PATCH] virtiofsd: Whitelist fchmod

2020-06-17 Thread Dr. David Alan Gilbert
* Max Reitz (mre...@redhat.com) wrote: > lo_setattr() invokes fchmod() in a rarely used code path, so it should > be whitelisted or virtiofsd will crash with EBADSYS. > > Said code path can be triggered for example as follows: > > On the host, in the shared directory, create a file with the stick

Re: [Virtio-fs] [PATCH] virtiofsd: Whitelist fchmod

2020-06-09 Thread Vivek Goyal
On Mon, Jun 08, 2020 at 11:31:11AM +0200, Max Reitz wrote: > lo_setattr() invokes fchmod() in a rarely used code path, so it should > be whitelisted or virtiofsd will crash with EBADSYS. > > Said code path can be triggered for example as follows: > > On the host, in the shared directory, create a

Re: [PATCH] virtiofsd: Whitelist fchmod

2020-06-08 Thread Dr. David Alan Gilbert
* Max Reitz (mre...@redhat.com) wrote: > lo_setattr() invokes fchmod() in a rarely used code path, so it should > be whitelisted or virtiofsd will crash with EBADSYS. > > Said code path can be triggered for example as follows: > > On the host, in the shared directory, create a file with the stick

[PATCH] virtiofsd: Whitelist fchmod

2020-06-08 Thread Max Reitz
lo_setattr() invokes fchmod() in a rarely used code path, so it should be whitelisted or virtiofsd will crash with EBADSYS. Said code path can be triggered for example as follows: On the host, in the shared directory, create a file with the sticky bit set and a security.capability xattr: (1) # to