smbd: split out smbd_check_access_rights_fname and call it before SMB_VFS_FGET_NT_ACL
authorStefan Metzmacher <metze@samba.org>
Wed, 13 Jul 2022 11:15:39 +0000 (11:15 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 26 Jul 2022 00:31:29 +0000 (00:31 +0000)
commit0d4cb5a641e1fea2d369bdc66470a580321366c2
treed1996abcef12d3f12012494ae91c01dba1af4f79
parentcf6cc948e04c52e0beb2dda246bb345588ea1e3d
smbd: split out smbd_check_access_rights_fname and call it before SMB_VFS_FGET_NT_ACL

commit 8e3798dd22276bc1ac8e96004d0e5e974240a7b9 actually came with a
change in behavior..., as SMB_VFS_GET_NT_ACL_AT() (at the time) and
now SMB_VFS_FGET_NT_ACL() is always called even if it's not needed.
E.g. access by root.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jul 26 00:31:29 UTC 2022 on sn-devel-184
source3/smbd/open.c