ntacls: Pass correct use_ntvfs through to setntacl()
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 15 Jan 2019 01:09:15 +0000 (14:09 +1300)
committerJeremy Allison <jra@samba.org>
Thu, 17 Jan 2019 00:40:30 +0000 (01:40 +0100)
We were already checking the smb.conf to see if it uses the NTVFS file
server or the default smbd server. However, we weren't passing this
through to the setntacl() call.

This fixes the problem we noticed with 'samba-tool gpo aclcheck' failing
after a restore.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13676

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
python/samba/ntacls.py
selftest/knownfail.d/gpo [deleted file]

index 992457375294ea4131544b9aeb124aae1acc2a8c..5bf646caf9f1704bcb0ab7ff069ee1097e6e4b3b 100644 (file)
@@ -454,7 +454,8 @@ class NtaclsHelper:
 
     def setntacl(self, path, ntacl_sd):
         # ntacl_sd can be obj or str
-        return setntacl(self.lp, path, ntacl_sd, self.dom_sid)
+        return setntacl(self.lp, path, ntacl_sd, self.dom_sid,
+                        use_ntvfs=self.use_ntvfs)
 
 
 def _create_ntacl_file(dst, ntacl_sddl_str):
diff --git a/selftest/knownfail.d/gpo b/selftest/knownfail.d/gpo
deleted file mode 100644 (file)
index fabe2ba..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-# 'samba-tool gpo aclcheck' currently fails against restored testenvs (due to a bug)
-samba.tests.samba_tool.gpo.samba.tests.samba_tool.gpo.GpoCmdTestCase.test_aclcheck\(renamedc:local\)
-samba.tests.samba_tool.gpo.samba.tests.samba_tool.gpo.GpoCmdTestCase.test_aclcheck\(offlinebackupdc:local\)