s3: torture: Add a test for setting and getting ACLs on stream handles (SMB2-STREAM...
authorJeremy Allison <jra@samba.org>
Thu, 25 Mar 2021 22:43:16 +0000 (15:43 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 30 Mar 2021 19:16:34 +0000 (19:16 +0000)
commitc7762a2bee2573421888b1fab8f3c86ea5348458
tree7f915d0424564e0aec6254f254fd1a14584d5d24
parent9cff0a0c1145714da1e2a961c36d5b45e781ed55
s3: torture: Add a test for setting and getting ACLs on stream handles (SMB2-STREAM-ACL).

It shows this isn't done correctly for streams_xattr.

A common config is:

vfs_objects = streams_xattr acl_xattr

to store both streams and Windows ACLs in xattrs.

Unfortunately getting and setting ACLs using handles
opened on stream files isn't being done correctly
in Samba.

This test passes against Windows 10.

This adds tests that prove this doesn't work. Next
patch will add the fix and remove the knownfail.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
selftest/knownfail.d/stream-acl [new file with mode: 0644]
source3/selftest/tests.py
source3/torture/proto.h
source3/torture/test_smb2.c
source3/torture/torture.c