Architecture and reading guide
The Peios kernel combines Linux hardware and core services with native access control, events, configuration, layered storage and packet policy. These subsystems are built into the kernel; PKM's historical name, “Peios Kernel Module”, does not mean it is a loadable module.
The native subsystems #
| Subsystem | Responsibility | Start reading |
|---|---|---|
| KACS | Tokens, security descriptors, access checks, impersonation and process integrity | Overview |
| KMES | Trusted event stamps, emission and per-CPU delivery rings | Overview |
| LCS | Registry objects, layers, watches, transactions and source dispatch | Overview |
| StrataFS | Name resolution and mutation across an ordered stack of directories | Overview |
| NTFE | Packet snapshots, policy evaluation, flow decisions and policy generations | Overview |
The components share services. KACS supplies identity for KMES stamps and sends audit events through KMES. LCS uses KACS descriptors for authorization and userspace registry sources for storage. StrataFS delegates authority to KACS while controlling provider selection and copy-up. NTFE consumes configuration through LCS and obtains local socket identity from KACS.
Source ownership #
KACS, KMES and LCS live under security/pkm/. StrataFS lives in fs/stratafs/,
and NTFE's networking integration lives in net/ntfe/. Public interfaces are
declared under include/uapi/pkm/. Shared Rust semantic code is compiled from
the kernel sources; the host-test workspace in peios/rust/ provides wrappers
and tests for that same code.
The kernel also changes existing Linux enforcement and integration points. Peios kernel behaviour explains how to read inherited Linux documentation in this environment, including retained compatibility checks and remote filesystem authority.
Choosing a reading path #
For the security model, start with KACS tokens (The Token Model), follow the process security state (The PSB Model), and then read the AccessCheck overview (AccessCheck Overview) and algorithm (The Algorithm). File authority (The Handle Model) connects that model to StrataFS copy-up (Copy-Up) and descriptor preservation (Descriptors on Copy-Up).
For event and configuration services, read the KMES event model (Event Model), rings (Ring Buffers) and emission policy (Emission Policy), then LCS data objects (Hives and Routing), layers (The Layer Model) and bootstrap (The Bootstrap Problem). NTFE's overview (Overview) brings together policy ingestion, packet evaluation and flow state.
For application and service callers, use the native interface references: KMES syscalls (Syscall Interface), KACS ABI (KACS ABI Reference), LCS descriptors and calls (The Fd Model), and the NTFE device interface (NTFE ABI Notes). For operation, start with StrataFS mount options (Mount Options). For kernel development, read Building Peios and the native subsystem testing guide.
Scope and specifications #
These articles describe the implementation and its interfaces. A documented code path is not a claim that every configuration or deployment has been qualified. Generated ABI tables report values and layouts from this tree; handwritten articles explain behaviour that those tables cannot express.
Cross-system formats and protocols retain their own specifications in PCDS and PSPK. The kernel articles explain how the implementation uses those contracts and call out differences where relevant.