PySECURITY_DESCRIPTOR Object
A Python object, representing a SECURITY_DESCRIPTOR structure
Methods
- Initialize
- Initializes the object.
- GetSecurityDescriptorOwner
- Return the owner of the security descriptor. SID is returned.
- GetSecurityDescriptorOwner
- Return the group owning the security descriptor. SID is returned.
- GetSecurityDescriptorDacl
- Return the discretionary ACL of the security descriptor.
- GetSecurityDescriptorSacl
- Return the system ACL of the security descriptor.
- GetSecurityDescriptorControl
- Returns the control bit flags and revistion of the SD
- SetSecurityDescriptorOwner
- Set the owner of the security descriptor. Returns non-zero on success.
- SetSecurityDescriptorGroup
- Set the primary group of the security descriptor. Returns non-zero on success.
- SetDacl
- Sets information in a discretionary access-control list.
- SetSecurityDescriptorSacl
- Sets the system access control list in the security descriptor
- IsValid
- Determine if security descriptor is valid (IsValidSecurityDescriptor)
- GetLength
- Return length of security descriptor (GetSecurityDescriptorLength)
- IsSelfRelative
- Returns true if SD is self-relative, false if absolute
- SetSecurityDescriptorControl
- Sets control bitmask of a security descriptor
Comments
Note the PySECURITY_DESCRIPTOR object supports the buffer interface. Thus buffer(sd) can be used to obtain the raw bytes. tp_as_buffer