]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture/smb2: Mark smb2.acl.SDFLAGSVSCHOWN as not supported for windows
authorVinit Agnihotri <vagnihot@redhat.com>
Fri, 11 Jul 2025 12:39:58 +0000 (18:09 +0530)
committerAnoop C S <anoopcs@samba.org>
Wed, 13 Aug 2025 17:25:33 +0000 (17:25 +0000)
Test case is expecting return code of NT_STATUS_OK for changing owner to
'everyone', however 'Windows 2016 server' is returning error code as
NT_STATUS_INVALID_OWNER and test case fails.

Same error code is returned if tested against targets w2k16, win2k12R2, win10, win11,
win7, win8 and winxp as well.

Thus marking this case as not supported for all windows versions till, issue is resolved.

Singed-off-by: Vinit Agnihotri <vagnihot@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/torture/smb2/acls.c

index a3f605a22eac940c0ebee88f76dac03168766777..ef1f70cb7260fbf7f611adfc8d85f7876774a9f2 100644 (file)
@@ -1545,6 +1545,10 @@ static bool test_sd_flags_vs_chown(struct torture_context *tctx,
                uint32_t child_get_ace_inherit;
        } tflags[16] = {{0}}; /* 2^4 */
 
+       if (TARGET_IS_WINDOWS(tctx)) {
+               torture_skip(tctx, "Not supported by windows backend\n");
+       }
+
        owner_sd = security_descriptor_dacl_create(tctx,
                                                   0,
                                                   SID_WORLD,