Skip to content

Fix xattr for non-regular, non-directory files

Sergio Lopez requested to merge (removed):fix-xattr into main

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

Merge request reports