From: Ralph Boehme Date: Mon, 31 Jul 2023 13:56:26 +0000 (+0200) Subject: python/policies.py: avoid SDDL conversion for dsacl2fsacl X-Git-Tag: tevent-0.17.0~522 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62c8dc9fa1f00dd178468edf23d35f6316fce800;p=thirdparty%2Fsamba.git python/policies.py: avoid SDDL conversion for dsacl2fsacl This is not needed and has the potential to loose information if the sddl code wouldn't have all features implemented. No intended change in behaviour. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14927 Pair-Programmed-With: Stefan Metzmacher Signed-off-by: Ralph Boehme Signed-off-by: Stefan Metzmacher --- diff --git a/python/samba/policies.py b/python/samba/policies.py index 45392322b3e..0a496513c21 100644 --- a/python/samba/policies.py +++ b/python/samba/policies.py @@ -78,8 +78,7 @@ class RegistryGroupPolicies(object): # Create a file system security descriptor domain_sid = security.dom_sid(self.samdb.get_domain_sid()) - sddl = dsacl2fsacl(ds_sd, domain_sid) - self.fs_sd = security.descriptor.from_sddl(sddl, domain_sid) + self.fs_sd = dsacl2fsacl(ds_sd, domain_sid, as_sddl=False) def __load_registry_pol(self, pol_file): try: