PySECURITY_DESCRIPTOR.SetSecurityDescriptorDacl

SetSecurityDescriptorDacl(bDaclPresent, DACL, bDaclDefaulted)

Replaces DACL in a security descriptor.

Parameters

bDaclPresent : int

A flag indicating if the SE_DACL_PRESENT flag should be set.

DACL : PyACL

The DACL to set. If None, a NULL ACL will be created allowing world access.

bDaclDefaulted : int

A flag indicating if the SE_DACL_DEFAULTED flag should be set.