Skip to content

Commit

Permalink
CVE-2021-44141: s3: torture: Change expected error return for samba3.…
Browse files Browse the repository at this point in the history
…smbtorture_s3.plain.POSIX.smbtorture.

Trying to open a symlink as a terminal component should return
NT_STATUS_OBJECT_NAME_NOT_FOUND, not NT_STATUS_OBJECT_PATH_NOT_FOUND.

Mark as knownfail.d/simple_posix_open until we fix the server.

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

Signed-off-by: Jeremy Allison <[email protected]>
  • Loading branch information
jrasamba authored and metze-samba committed Jan 31, 2022
1 parent 3e9f6d7 commit f5b28d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions selftest/knownfail.d/simple_posix_open
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
^samba3.smbtorture_s3.plain.POSIX.smbtorture\(.*\)
4 changes: 2 additions & 2 deletions source3/torture/torture.c
Original file line number Diff line number Diff line change
Expand Up @@ -8028,9 +8028,9 @@ static bool run_simple_posix_open_test(int dummy)
goto out;
} else {
if (!check_both_error(__LINE__, status, ERRDOS, ERRbadpath,
NT_STATUS_OBJECT_PATH_NOT_FOUND)) {
NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
printf("POSIX open of %s should have failed "
"with NT_STATUS_OBJECT_PATH_NOT_FOUND, "
"with NT_STATUS_OBJECT_NAME_NOT_FOUND, "
"failed with %s instead.\n",
sname, nt_errstr(status));
goto out;
Expand Down

0 comments on commit f5b28d8

Please sign in to comment.