interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / docs / SOVEREIGNTY_FLAGS.md

63 lines · 5582 bytes Raw Blame History Source

Sovereignty flags: systemd and tpm2-tools

Status: flag only. Nothing here changes behaviour. Standing rules: no systemd anywhere in AIENOS boot, init, services or tooling (see .github/copilot-instructions.md:22), and no outside dependencies. Each in-script hit carries a # FLAG(sovereignty): comment. Found with git grep -n -iE 'systemd|systemctl|tpm2_|tpm2-tools|journalctl' on origin/main. No earlier equivalent document existed. All results are NOT_RUN (documentation only).

Line numbers are origin/main numbering (before the added FLAG comment lines), checked after merging a047289 and 7a16a9f.

"Runs on" key: IMAGE = executes inside the AIENOS recovery image; HOST = Linux host only (TRUST-1 operator steps, CI, or the software-TPM test); DOC = text only.

systemd

WhereWhat it doesRuns onReplacement owed
scripts/tpm_measurement_campaign.sh:141systemctl is-enabled fwupd-refresh.timer, recorded in capture.envHOSTRemove the line (or read the fwupd state without systemctl)
scripts/trust1_credential_policy.sh:2 (and :5-:34, :103)Decodes systemd-creds credential headers and checks the TPM policyHOST (Gate 0)Retire once credentials leave systemd-creds; in-house C decoder if still needed
docs/TRUST-1-OPERATOR-STEPS.md:74,80Operator disables/enables fwupd-refresh.timer with systemctlDOC (HOST steps for Drake)Replace the step with a non-systemd instruction or remove it
docs/HARDWARE_TEST_RIG.md:121Documents systemctl reboot --firmware-setupDOC (HOST)Replace with a firmware-setup key or efibootmgr step
docs/TRUST-1-IMPLEMENTATION-PLAN.md:27Describes decoding systemd credentialsDOCReword when the decoder is retired
evidence/gate0_evidence_receipt_v1.json:106,111Record that the old key was sealed with systemd-creds (historical)DOC (evidence, do not edit)None; historical record
evidence/trust1_gate0_addendum_v1.json:39,59Historical record of systemd-creds decode and decryptDOC (evidence, do not edit)None
.github/workflows/ci.yml:26No systemd; installs tpm2-tools (see below)HOST (CI)See tpm2-tools
.github/copilot-instructions.md:22The rule itselfDOCNone
vendor/log/**Third-party text mentioning systemd-journal-loggerDOC (vendored)None; not used

tpm2-tools (tpm2_* commands)

WhereWhat it doesRuns onReplacement owed
scripts/build_standalone_recovery_initrd.sh:39 (+:101 comment)Copies /usr/bin/tpm2_pcrread and its TCTI library into the recovery initrdIMAGEIn-house C PCR reader
scripts/capture_gate1_receipt.sh:67 (origin/main numbering)Names tpm2_pcrread in the Gate 1 receipt tool listIMAGE (receipt)Follows the C reader
scripts/collect_recovery_boot_evidence.sh:119Reads SHA-256 PCRs in the rescue shellIMAGEIn-house C PCR reader
scripts/verify_recovery_tools.sh:87,123Checks tpm2_pcrread is present in the built imageHOST (checks IMAGE)Check for the C reader instead
scripts/tpm_measurement_campaign.sh:18,67-68,72,77,91,143pcrread, eventlog parse, versionHOST (Gate 0 operator)In-house C PCR reader and event-log parser
scripts/trust1_credential_policy.sh:78tpm2_pcrread for live policy checkHOSTIn-house C PCR reader
scripts/trust1_gate7_preflight.sh:65,67,113Requires tpm2_pcrread, tpm2_eventlog on UbuntuHOSTIn-house C tools
scripts/test_trust1_measurement_tools.sh:19,38-39,65,97,116Self-test of the measurement tools against swtpmHOSTTest against the C tools
scripts/trust1_gate5_policy_sim.sh:66-72 and every tpm2_ call through :465Software-TPM simulation of the seal policy (createprimary, policy, unseal, nv)HOST (swtpm)In-house C TPM policy simulator (native/m5 already defines the slot types)
scripts/verify_all.sh:219,222Runs Step 10 only if tpm2_pcrread existsHOSTGate on the C tools
.github/workflows/ci.yml:26apt-get install tpm2-tools swtpm-tools libtss2-tcti-swtpm0t64HOST (CI)Drop once the C tools replace the tests (not edited here)
docs/RECOVERY_MEDIA_MACHINE1.md:40,45Says the recovery media carries tpm2_pcrreadDOC (IMAGE)Reword with the C reader
docs/adr/0017-m5-key-hierarchy-and-encrypted-store.md:133,238-244TPM2 command names as spec text (TPM2_PolicyPCR etc.)DOCNone; these are TPM spec names, not the tool
evidence/gate1_zero_disk_recovery_receipt.json:45Historical receipt listing tpm2_pcrreadDOC (do not edit)None
evidence/trust1_gate0_addendum_v1.json:32; evidence/trust1_gate0_capture_2026-09-30/capture.env:23Historical tpm2_eventlog / tool version recordDOC (do not edit)None
native/m5/m5.h:79Constant name TPM2_POLICY_AUTHORIZE, not the toolnoneNone

Listed here only (not edited; owned by LT-AIENOS aienos#213)

WhereWhat it doesRuns onReplacement owed
scripts/trust1_m5_qualify.sh:317-320tpm2_getcap properties-fixed for TPM vendor and firmwareHOST (qualify)In-house C TPM capability reader
scripts/trust1_m5_qualify.sh:326tpm2_pcrread sha256:0..15HOST (qualify)In-house C PCR reader

native/capability/** had no hits.

What the image actually carries today

Only tpm2_pcrread (plus its device transport library) reaches the recovery image. The rest is Linux-host operator or test tooling. One in-house C PCR reader removes the image dependency; the event-log parser and policy simulator remove the host dependency.