smbd: move access override for previous versions to the SMB layer
authorRalph Boehme <slow@samba.org>
Fri, 15 Dec 2023 10:59:36 +0000 (11:59 +0100)
committerJule Anger <janger@samba.org>
Tue, 9 Jan 2024 13:17:12 +0000 (13:17 +0000)
commitcfbaab5654cc40ef08ab09492d20aac2f33cbf0e
treebe861497adb6b213f6b0f247e6a9f961d78fcec9
parent0874d3ab3e1cb7e42900da9543963799b864e485
smbd: move access override for previous versions to the SMB layer

Doing the previous version access checks and semantics at the SMB
layer means we can simplify the shadow_copy2 and remove the kludge.

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>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Jan  8 16:58:26 UTC 2024 on atb-devel-224

(backported from commit f14a7065690b00e3c6af2c1f0b0aec51c1e0b372)
[slow@samba.org: vfs_shadow_copy2.c: no TALLOC_FREE() in context]
[slow@samba.org: open.c: assign result from calculate_open_access_flags()]

Autobuild-User(v4-19-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-19-test): Tue Jan  9 13:17:12 UTC 2024 on atb-devel-224
source3/modules/vfs_shadow_copy2.c
source3/smbd/open.c