How Peios Fits Together

A Peios machine is built from a small number of components, each with one job. This page names them, shows the order in which they start, and says where each is documented. When something goes wrong, the component that owns the job is where to look.

The kernel #

The kernel manages the hardware and runs every program. Peios adds five subsystems of its own to it:

SubsystemJob
Kernel Access Control Subsystem (KACS)Access control: tokens, security descriptors, privileges, and every access decision
Layered Configuration Subsystem (LCS)The registry: keys, values, layers, watches, and transactions
Kernel Mediated Event Subsystem (KMES)Events: the single path every event takes, with trusted details about its sender
StrataFSLayered storage: several directories, the strata that give it its name, presented as one directory tree
Network Traffic Filtering Engine (NTFE)The network packet filter, which enforces network policy from the registry

The subsystems rely on each other. The registry and the file systems use KACS security descriptors, and KACS reports its access decisions through KMES. The Peios Kernel product documents all five.

Starting the machine #

A machine starts in this order:

  1. The firmware loads one boot file that holds the kernel, a temporary file system loaded into memory, and the kernel's settings.
  2. Prelude runs from that temporary file system. It prepares the devices, mounts the real disk, and hands over to peinit. See Prelude.
  3. peinit, the service manager, prepares the system, then starts the registry service, loregd, and the sign-in service, authd.
  4. peinit then reads the service definitions from the registry and starts every service in dependency order. See Boot and Boot Modes.
  5. You sign in at the console, over SSH, or from a browser, and authd creates the token your session runs with. See Signing In.

If the machine can't finish starting, peinit starts it in a recovery mode with a console for repairs.

System services #

These services run on every machine:

ServiceJobGuide
peinitStarts, supervises, and stops services and scheduled jobsServices and Jobs
authdChecks credentials and creates access tokens; its partner lpsd stores local accountsLocal Accounts
loregdStores the registry's dataThe Registry
eventdStores events, logs, and metrics and answers queries for themReading Records
netdConfigures network interfaces, addresses, and routesNetwork Configuration
resolvdResolves names to addressesDiagnosing Name Resolution
timedKeeps the clock correct and manages the time zoneKeeping the Time
trustdMaintains the certificates the machine trustsThe Trust Store

The desktop #

Three programs make the desktop that you use from a browser. The Graphical Extensible Web Interface (GXWI) serves the session and handles sign-in from the browser, Fenestra arranges the windows, and Fenesh provides the dock, launcher, and settings. A set of desktop applications covers files, terminals, and system administration. See The Desktop.

Tools and development #

The command-line utilities include the familiar file and text commands, and tools for Peios's own features: reg for the registry, sd for security descriptors, and token for identities. The installer installs Peios to a disk and runs first-boot setup.

To build software for Peios, start with the Peios SDK.

Kinds of documentation #

Each kind of documentation answers a different question:

KindRead it to find out
These Learn pagesHow something works, and how to get a task done
Man pages, through manExactly what a command, file, or function does, with every option
Registry manuals, through regmanWhat a registry value means and which values are valid
Event manuals, through evmanWhat an event or one of its fields means
Technical reference manualsHow one component works inside
SpecificationsThe contracts that independent programs must agree on

A command's --help output is a short reminder of its man page.

Edit this page