1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

torture: Show sddl_decode() failure for "GWFX" access mask

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2021-04-19 16:04:00 +02:00 committed by Jeremy Allison
parent e030355643
commit b113a3bbcd
2 changed files with 7 additions and 1 deletions

View File

@ -178,3 +178,9 @@ class SddlDecodeEncode(TestCase):
sddl = sd.as_sddl(sid)
sd2 = security.descriptor.from_sddl(sddl, sid)
self.assertEqual(sd, sd2)
def test_multiflag(self):
sid = security.dom_sid("S-1-2-3-4")
raised = False
with self.assertRaises(Exception):
sd = security.descriptor.from_sddl("D:(A;;GWFX;;;DA)", sid)

View File

@ -109,7 +109,7 @@ def plantestsuite_loadlist(name, env, cmdline):
raise AssertionError("loadlist test %s does not support not --list" % name)
if "$LOADLIST" not in cmdline:
raise AssertionError("loadlist test %s does not support --load-list" % name)
print(("%s | %s" % (cmdline.replace("$LOADLIST", ""), add_prefix(name, env, support_list))).replace("$LISTOPT", "--list"))
print(("%s | %s" % (cmdline.replace("$LOADLIST", ""), add_prefix(name, env, support_list))).replace("$LISTOPT", "--list "))
print(cmdline.replace("$LISTOPT", "") + " 2>&1 " + " | " + add_prefix(name, env, False))