s3:smbd: let openat_pathref_dirfsp_nosymlink() do a verification loop against . and...
commit17484d069b92d08b0228fb509ea42ab4c3f496a8
authorStefan Metzmacher <metze@samba.org>
Wed, 10 Aug 2022 20:01:10 +0000 (10 22:01 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 15 Aug 2022 15:03:37 +0000 (15 15:03 +0000)
tree80f42a88dddd25e561d31c1f17e16a86f4f3726a
parentf7dc27558329eea7d2c4d75ee101c7f9d3a7afe3
s3:smbd: let openat_pathref_dirfsp_nosymlink() do a verification loop against . and .. first

I guess we should catch NT_STATUS_OBJECT_NAME_INVALID first,
currently the check is already done in check_path_syntax*,
but we may remove it in future.

But the most important reason for this is the
openat2(RESOLVE_NO_SYMLINK) optimization, which will
be introduced in the following commits.

Review with: git show -w

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/files.c