MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __init__

Method __init__

pager_lib/smb/security_descriptors.py:198–219  ·  view source on GitHub ↗
(self, type_, flags, mask, sid, additional_data)

Source from the content-addressed store, hash-verified

196 HEADER_FORMAT = '<BBH'
197
198 def __init__(self, type_, flags, mask, sid, additional_data):
199 #: An integer representing the type of the ACE. One of the
200 #: ``ACE_TYPE_*`` constants. Corresponds to the ``AceType`` field
201 #: from [MS-DTYP] 2.4.4.1.
202 self.type = type_
203 #: An integer bitmask with ACE flags, corresponds to the
204 #: ``AceFlags`` field.
205 self.flags = flags
206 #: An integer representing the ``ACCESS_MASK`` as specified in
207 #: [MS-DTYP] 2.4.3.
208 self.mask = mask
209 #: The :class:`SID` of a trustee.
210 self.sid = sid
211 #: A dictionary of additional fields present in the ACE, depending
212 #: on the type. The following fields can be present:
213 #:
214 #: * ``flags``
215 #: * ``object_type``
216 #: * ``inherited_object_type``
217 #: * ``application_data``
218 #: * ``attribute_data``
219 self.additional_data = additional_data
220
221 def __repr__(self):
222 return "ACE(type=%#04x, flags=%#04x, mask=%#010x, sid=%s)" % (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected