smbd: check for previous versions in check_any_access_fsp()
authorRalph Boehme <slow@samba.org>
Wed, 20 Dec 2023 14:09:59 +0000 (15:09 +0100)
committerJule Anger <janger@samba.org>
Tue, 9 Jan 2024 12:13:13 +0000 (12:13 +0000)
commit0874d3ab3e1cb7e42900da9543963799b864e485
tree0575942a54e2a1d95ec26ed6afebd206a5114995
parentf5eb449cac82de61c4eadc1b134c92896f69aacf
smbd: check for previous versions in check_any_access_fsp()

Now that check_any_access_fsp() is broadly used consistently to
restrict access for all modifying operations, we can add a check for
previous versions to check_any_access_fsp() and it gets enforced
consistently.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit fd4e41144a819b4403340e4a28664ac586722b41)
selftest/knownfail.d/samba3.blackbox.shadow_copy_torture [deleted file]
source3/smbd/smb2_trans2.c