The source project of this merge request has been removed.
Fix xattr for non-regular, non-directory files
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@redhat.com