source4/torture: Add SEC_STD_DELETE to enable proper cleanup
commit5a0fce58650770bc7701d1be72492637c2ced63c
authorAnoop C S <anoopcs@samba.org>
Thu, 22 Feb 2024 13:56:08 +0000 (22 19:26 +0530)
committerVolker Lendecke <vl@samba.org>
Mon, 26 Feb 2024 18:35:43 +0000 (26 18:35 +0000)
tree7913fd81d87857bf1af26585774730d39c64df02
parente4c3c61302b12419f041867b58350f11dc800318
source4/torture: Add SEC_STD_DELETE to enable proper cleanup

basic.maximum_allowed and smb2.maximum_allowed attempt to unlink the
files created by those tests. But the restrictive SD with which they
were created prohibits the deletion inside shares where vfs_acl_xattr
is configured including "ignore system acls". The very same file will
otherwise cause problems while progressing with remaining sub tests.
SEC_STD_DELETE could be the minimum required additional access mask
to successfully delete the file under the said configuration using
vfs_acl_xattr and "ignore system acls" option without loosing the
integrity of the overall test.

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Feb 26 18:35:43 UTC 2024 on atb-devel-224
source4/torture/basic/denytest.c
source4/torture/smb2/max_allowed.c