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

Method __init__

pager_lib/smb/security_descriptors.py:327–340  ·  view source on GitHub ↗
(self, flags, owner, group, dacl, sacl)

Source from the content-addressed store, hash-verified

325 HEADER_FORMAT = '<BBHIIII'
326
327 def __init__(self, flags, owner, group, dacl, sacl):
328 #: Integer bitmask of control flags. Corresponds to the
329 #: ``Control`` field in [MS-DTYP] 2.4.6.
330 self.flags = flags
331 #: Instance of :class:`SID` representing the owner user.
332 self.owner = owner
333 #: Instance of :class:`SID` representing the owner group.
334 self.group = group
335 #: Instance of :class:`ACL` representing the discretionary access
336 #: control list, which specifies access restrictions of an object.
337 self.dacl = dacl
338 #: Instance of :class:`ACL` representing the system access control
339 #: list, which specifies audit logging of an object.
340 self.sacl = sacl
341
342 @classmethod
343 def from_bytes(cls, data):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected