[Virtio-fs] [virtiofsd-rs] MR opened: Fix xattr for non-regular, non-directory files

virtiofs-bot at sinrega.org virtiofs-bot at sinrega.org
Fri Jun 11 15:00:47 UTC 2021


We can only use f{set,get,remove,list}xattr functions on regular and
directory files. For other types of files, use fchdir and the ...xattr
version of the syscall, instead of the f...xattr alternative.

This is a port of virtiofsd commit bdfd6678834 (virtiofsd: Fix xattr
operations) by Misono Tomohiro.

Signed-off-by: Sergio Lopez <slp at redhat.com>
---
https://gitlab.com/virtio-fs/virtiofsd-rs/-/merge_requests/32




More information about the Virtio-fs mailing list