mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +03:00
selftest: aces: use constant from samba.security
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
committed by
Andrew Bartlett
parent
62e11cfa8a
commit
1093f4b6b1
@@ -219,7 +219,7 @@ def assemble_sd(base_sddl='D:',
|
||||
# If the compiled ACE is a deny ACE, we won't know if it
|
||||
# worked unless there is a wide ranging allow ACE following
|
||||
# it.
|
||||
allow_ace = assemble_ace(type='A',
|
||||
allow_ace = assemble_ace(type=security.SEC_ACE_TYPE_ACCESS_ALLOWED,
|
||||
trustee=security.dom_sid(security.SID_WORLD),
|
||||
access_mask=security.SEC_FILE_ALL)
|
||||
sd.dacl_add(allow_ace)
|
||||
|
||||
Reference in New Issue
Block a user