mirror of
https://github.com/samba-team/samba.git
synced 2025-12-23 00:23:53 +03:00
python:ntacls: pull allow list out of loop
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14927 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Wed Mar 19 15:56:38 UTC 2025 on atb-devel-224
This commit is contained in:
committed by
Ralph Boehme
parent
ff0e0045ed
commit
20129d16dc
@@ -299,10 +299,6 @@ def dsacl2fsacl(dssddl, sid, as_sddl=True):
|
|||||||
fdescr.group_sid = ref.group_sid
|
fdescr.group_sid = ref.group_sid
|
||||||
fdescr.type = ref.type
|
fdescr.type = ref.type
|
||||||
fdescr.revision = ref.revision
|
fdescr.revision = ref.revision
|
||||||
aces = ref.dacl.aces
|
|
||||||
|
|
||||||
for i in range(0, len(aces)):
|
|
||||||
ace = aces[i]
|
|
||||||
|
|
||||||
# Only apply allowed and deny ACEs, as they are the only ones
|
# Only apply allowed and deny ACEs, as they are the only ones
|
||||||
# we can map to filesystem aces.
|
# we can map to filesystem aces.
|
||||||
@@ -312,6 +308,8 @@ def dsacl2fsacl(dssddl, sid, as_sddl=True):
|
|||||||
security.SEC_ACE_TYPE_ACCESS_ALLOWED,
|
security.SEC_ACE_TYPE_ACCESS_ALLOWED,
|
||||||
security.SEC_ACE_TYPE_ACCESS_DENIED,
|
security.SEC_ACE_TYPE_ACCESS_DENIED,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
for ace in ref.dacl.aces:
|
||||||
if not ace.type in allowed_ace_types:
|
if not ace.type in allowed_ace_types:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user