1.1 Scope
This document defines the common binary data structures shared across Peios subsystems: three identifier types — the Globally Unique Identifier (GUID), the Locally Unique Identifier (LUID), and the Security Identifier (SID) — the Security Descriptor (SD) family, the passphrase-sealed secret, and the key file.
This document covers:
- GUID — binary format, string representation, comparison semantics, and generation requirements
- LUID — binary format, comparison semantics, and allocation model
- SID — binary format, string representation, comparison semantics, and the well-known SID catalog
- SD — the security descriptor structure and its subtypes: ACL and ACE formats, access masks, ACE ordering, inheritance, ownership, conditional ACEs and their bytecode, claim attributes, and resource attributes
- Sealed secret — the
PEIOSEALbinary format, how a secret is sealed under a passphrase and opened, and how a passphrase's text becomes bytes - Key file — the
PEIOSKEYbinary format, which holds a key pair with its private key sealed or kept under access control, the key algorithms it can hold, and how it is read
This document does not cover:
- Well-known GUID and LUID values — defined in the specifications of the subsystems that declare them
- SID-bearing aggregate structures such as SID_AND_ATTRIBUTES — described in the Peios Kernel TRM §3.2.2
- The access-check algorithm that evaluates these structures — described in the Peios Kernel TRM §3.8
- Per-object-type SD storage locations — described in the Peios Kernel TRM §3.3.3 for processes and §3.9.5 for files
- Application-specific identifier namespaces
- What a sealed secret holds, and the file formats other than the key file that carry one, such as PSO's — defined by the programs that use them
Three of those exclusions point at a manual rather than at another specification, which is deliberate and worth stating once. KACS — the kernel's access-control implementation — is described in the Peios Kernel TRM §3 and is not separately specified. Peios does not offer a standard from which a second, independent access-control implementation could be built; it offers a manual describing the one that exists.
What a third party does need is the other half: the structures that cross the boundary into that implementation, and the rules for reading and writing them. That is this document, and it is specified. Where a structure's meaning depends on what KACS does with it, this document names the manual article that describes the behavior rather than restating it (Conventions §4.7).