Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
Development · Evolving reference

PosixAclEntry

Owns one semantic POSIX permission entry without native encoding. Canonical policy order is Owner, ascending unique User IDs, OwningGroup, ascending unique Group IDs, optional Mask, Other. Owner, OwningGroup and Other occur exactly once; named identities require a Mask. The mask limits named users and owning/named groups, never Owner or Other. Entries allocate nothing, retain no file and grant no access by construction. Numeric IDs are interpreted by the selected provider/identity namespace, not resolved as names. Shared mutation requires synchronization. Policies are not Windows ACLs or promises about effective caller access; kernel/filesystem policy remains authoritative.

Sn is under heavy development. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. Read the status →

Module std.fs

import std.fs;

Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.

PosixAclEntry

pub enum PosixAclEntry

Owns one semantic POSIX permission entry without native encoding. Canonical policy order is Owner, ascending unique User IDs, OwningGroup, ascending unique Group IDs, optional Mask, Other. Owner, OwningGroup and Other occur exactly once; named identities require a Mask. The mask limits named users and owning/named groups, never Owner or Other. Entries allocate nothing, retain no file and grant no access by construction. Numeric IDs are interpreted by the selected provider/identity namespace, not resolved as names. Shared mutation requires synchronization. Policies are not Windows ACLs or promises about effective caller access; kernel/filesystem policy remains authoritative.

PosixAclEntry.Owner

Owner;

Permissions of the object's owning user.

PosixAclEntry.Owner.Access

Access: PosixAccess;

PosixAclEntry.User

User;

Permissions of one numeric user, limited by Mask. Id: Provider-representable numeric user identity. Access: Unmasked entry permissions.

PosixAclEntry.User.Id

Id: u64;

PosixAclEntry.User.Access

Access: PosixAccess;

PosixAclEntry.OwningGroup

OwningGroup;

Owning group's permissions, limited by Mask when present.

PosixAclEntry.OwningGroup.Access

Access: PosixAccess;

PosixAclEntry.Group

Group;

Permissions of one numeric group, limited by Mask. Id: Provider-representable numeric group identity. Access: Unmasked entry permissions.

PosixAclEntry.Group.Id

Id: u64;

PosixAclEntry.Group.Access

Access: PosixAccess;

PosixAclEntry.Mask

Mask;

Maximum permissions for the group class, not a principal.

PosixAclEntry.Mask.Access

Access: PosixAccess;

PosixAclEntry.Other

Other;

Permissions for identities outside owner/named/group matches.

PosixAclEntry.Other.Access

Access: PosixAccess;
Documentation snapshot: October 24, 2026 About versions ↗
Searching Development · language & standard library