Skip to content

Acl

Immutable view of a native Windows access-control list.

A list can also be written as an AclSpec wherever one is accepted.

Constructor

Acl aces …

Constructs an ACL from built entries.

Revision 4 is selected when an object entry is present; otherwise revision 2 is selected.

Parameters

NameTypeDescription
aces Iterable[Ace] Entries, in order.
:revision? (AclRevision | Int) Native ACL revision.

Errors

ValueError if revision 2 is given with an object entry.

Fields

aces @ Seq[Ace] [get]

Immutable array-like view of the entries.

revision @ (AclRevision | Int) [get]

The revision, or its native number when it has no symbol.

size @ Int [get]

Size of the ACL's binary form, as its header declares.

Methods

to_bin() -> Bin

Returns the ACL's binary form exactly.