s4/torture: Create test_dir with SEC_RIGHTS_DIR_ALL
commit3b230769b02e7c9ecbe7eac05e0344b233b3ae39
authorAnoop C S <anoopcs@samba.org>
Wed, 29 May 2024 13:11:32 +0000 (29 18:41 +0530)
committerRalph Boehme <slow@samba.org>
Mon, 10 Jun 2024 12:16:32 +0000 (10 12:16 +0000)
tree197ac072f22a9054d5fb101ec7a5e3621d02adf5
parent469b22b849aa6a76739dc21d8a2d80907cdf8d73
s4/torture: Create test_dir with SEC_RIGHTS_DIR_ALL

In shares where acl_xattr vfs module is loaded with 'ignore system acls'
set, smb2.delete-on-close-perms.FIND_and_set_DOC fails to open test_dir
due to NT_STATUS_ACCESS_DENIED as it lacks few permissions for owner
when created using create_dir(). Test case aims to set delete-on-close
for which delete permission is necessary in first place. Therefore we
now perform the creation and subsequent opening of directory using
torture_smb2_testdir() so that the open handle comes with SEC_STD_DELETE
permission.

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/torture/smb2/delete-on-close.c