s3:tests: add a lot more tests to test_symlink_traversal_smb2.sh
authorStefan Metzmacher <metze@samba.org>
Fri, 12 Aug 2022 17:07:39 +0000 (19:07 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 16 Aug 2022 18:27:13 +0000 (18:27 +0000)
commitc2a69553872d7f733faf06a7a757ffc53d773506
treeff7750e056de60ebcbf8d4d6727d70b07b348926
parent7b4e11f155445d78cdf0090dc7030991934aa36f
s3:tests: add a lot more tests to test_symlink_traversal_smb2.sh

We now also test more path components checking the difference between
OBJECT_NAME_NOT_FOUND and OBJECT_PATH_NOT_FOUND.

We also test with symlinks within the path instead of only checking
symlinks as final path components (at least for the dirfsp part).

This ensures the following commits won't introduce regressions
when adding the openat2(RESOLVE_NO_SYMLINK) optimization.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15146
(cherry picked from commit 085f14857531dab179af66a69962486c7dd2592c)
source3/script/tests/test_symlink_traversal_smb2.sh