]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs:streams_xattr: Allow VFS_OPEN_HOW_RESOLVE_NO_XDEV
authorSamuel Cabrero <scabrero@samba.org>
Thu, 9 Oct 2025 11:05:16 +0000 (13:05 +0200)
committerSamuel Cabrero <scabrero@samba.org>
Tue, 18 Nov 2025 09:08:38 +0000 (09:08 +0000)
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 <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Samuel Cabrero <scabrero@samba.org>
Autobuild-Date(master): Tue Nov 18 09:08:38 UTC 2025 on atb-devel-224

source3/modules/vfs_streams_xattr.c

index f892bc45c66eaf38ca3974f362990ef9d0a7be0b..5d267a1c1fbfddd01b7f102f27bef70bf3d6ce4a 100644 (file)
@@ -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;
        }