]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2021-44141: s3: smbd: Inside rename_internals_fsp(), we must use vfs_stat() for...
authorJeremy Allison <jra@samba.org>
Wed, 8 Dec 2021 06:19:29 +0000 (22:19 -0800)
committerStefan Metzmacher <metze@samba.org>
Mon, 31 Jan 2022 16:26:26 +0000 (16:26 +0000)
We need to take SMB1+POSIX into account here and do an LSTAT if it's
a POSIX name.

Remove knownfail.d/posix_sylink_rename

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14911

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jan 31 16:26:26 UTC 2022 on sn-devel-184

selftest/knownfail.d/posix_sylink_rename [deleted file]
source3/smbd/reply.c

diff --git a/selftest/knownfail.d/posix_sylink_rename b/selftest/knownfail.d/posix_sylink_rename
deleted file mode 100644 (file)
index 9c3cc0a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-^samba3.blackbox.test_symlink_rename.SMB1.posix.symlink_rename_SMB1_posix\(fileserver_smb1_done\)
index 7886e48279e0cbff9c19458106569b702e7c850d..28fee8392962a968b698dd7f7f99ffbdd03bc352 100644 (file)
@@ -7305,7 +7305,7 @@ NTSTATUS rename_internals_fsp(connection_struct *conn,
                goto out;
        }
 
-       dst_exists = SMB_VFS_STAT(conn, smb_fname_dst) == 0;
+       dst_exists = vfs_stat(conn, smb_fname_dst) == 0;
 
        if(!replace_if_exists && dst_exists) {
                DEBUG(3, ("rename_internals_fsp: dest exists doing rename "