From: Samuel Cabrero Date: Thu, 9 Oct 2025 11:05:16 +0000 (+0200) Subject: vfs:streams_xattr: Allow VFS_OPEN_HOW_RESOLVE_NO_XDEV X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c3ee9747a4ed0cba9c5046721c29372734cd3f5;p=thirdparty%2Fsamba.git vfs:streams_xattr: Allow VFS_OPEN_HOW_RESOLVE_NO_XDEV The open function returns a fake fd. Extended attributes will be stored by vfs_xattr_tdb or vfs_default. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15805 Signed-off-by: Samuel Cabrero Reviewed-by: Ralph Boehme Autobuild-User(master): Samuel Cabrero Autobuild-Date(master): Tue Nov 18 09:08:38 UTC 2025 on atb-devel-224 --- diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index f892bc45c66..5d267a1c1fb 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -901,7 +901,9 @@ static int streams_xattr_openat(struct vfs_handle_struct *handle, how); } - if ((how->resolve & ~VFS_OPEN_HOW_WITH_BACKUP_INTENT) != 0) { + if ((how->resolve & ~(VFS_OPEN_HOW_WITH_BACKUP_INTENT | + VFS_OPEN_HOW_RESOLVE_NO_XDEV)) != 0) + { errno = ENOSYS; return -1; }