CVE-2023-3961:s3:torture: Add test SMB2-INVALID-PIPENAME to show we allow bad pipenam...
commit125ce23115b92045a1584f5654669180bea83067
authorJeremy Allison <jra@samba.org>
Wed, 26 Jul 2023 00:49:21 +0000 (25 17:49 -0700)
committerJule Anger <janger@samba.org>
Mon, 9 Oct 2023 20:16:07 +0000 (9 22:16 +0200)
treeac96b12ba76401a96250476a4c4378a88d84d778
parente5a1c1cfb0a73a37001afee530ae09bf5c58b515
CVE-2023-3961:s3:torture: Add test SMB2-INVALID-PIPENAME to show we allow bad pipenames with unix separators through to the UNIX domain socket code.

The raw SMB2-INVALID-PIPENAME test passes against Windows 2022,
as it just returns NT_STATUS_OBJECT_NAME_NOT_FOUND.

Add the knownfail.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
[abartlet@samba.org backported to Samba 4.17 due to conflicts from
 context of other new torture tests missing in this version and
 changes in smb2cli_create() arguments]
selftest/knownfail.d/badpipename [new file with mode: 0644]
source3/selftest/tests.py
source3/torture/proto.h
source3/torture/test_smb2.c
source3/torture/torture.c