me

/

vinix-ports Public
382 commits 0 issues 0 pull requests 1 contributor Discussions Projects Snippets LOC history Platform CI

Record the release font hook and signed HTTPS replays

diviocity committed 5 days ago · ae26d0e059f311dff9e3a53438332f37b7d00cb2 View patch
Unverified signature 3 files changed +5 -1
BOOTSTRAP.md +2 -0

@@ -205,6 +205,8 @@ Earlier package-manager and userland boot media use the same recovery procedure.

205205

206206The archive in `foundation/archived-completed-clients-01` preserves completed SDK clients, fixture sources and the AArch64 combined-runtime test media. It saved about 500 MiB on the worker. Use its `restore-paths` and verify `archives.sha256` before extraction. Receipt SHA-256 `a4a341b222b22fb9b07ddca848fe7406e9534d8fef92eccdec337a32324dc035`.

207207

208+The worker also archived reference Mesa libraries and earlier boot fixtures in `foundation/archived-reference-libs-and-early-boot-01`, and X11 SDK roots and test media in `foundation/archived-early-x11-clients-01`. The receipt SHA-256 values are `e9fef75a64222ad8f524994bafe5d470864edeb51ee6e346f756ae5b60c65fb1` and `30aa4c48599f529f08f57d3272979edb7cb5dd485e2e6633c2a256d5cd6cd6dc`. The archives can be restored using their `restore-paths` files.

209+

208210`foundation/archived-gcc-deltas-01` and `foundation/archived-vpac-disk-deltas-01` preserve older compressed archives as Zstandard deltas against closely matching archives on the same worker. Each TSV records the original pathname and hash, the reference and its hash, and the original mode and modification time. Recreate the original compressed archive with `zstd -d -M1024MB --patch-from="$reference" "$delta" -o "$original"`, verify its SHA-256, and restore its recorded metadata before running the original evidence checker. The receipt SHA-256 values are `c1890c05479bfa0ab51d5ffdb9a9de421b2d0835923cbfc3d7a51a070ab960cf` and `274775396dd874acb4a82d12058680d267eff837c1318ab3f82079e84ceab1f2`.

209211

210212An eight-package x86_64 guest tested the BusyBox wget applet and its separately packaged TLS helper. It rejected an unknown certificate, retrieved the expected bytes after installing the local CA, and rejected the same certificate for a different hostname. The guest fixture is `tests/userland/wget.sh`. The worker keeps the install, audit and serial hashes in `foundation/wget-guest-x86_64-01/receipts.sha256`, SHA-256 `5872d1467ee2594b9305bed5fa1ceb084c8c3fde4ebccb0539db25d02b3849f9`.

tests/FEED.md +1 -1

@@ -227,7 +227,7 @@ Run `vpac-guest.py` with `--scenario upgrade --package-command pkg` to exercise

227

1228Add `--upgrade-https` to serve the signed update on guest loopback TLS and switch the disposable guest's vpac repository URL to that endpoint. The fixture uses the packaged curl and OpenSSL, and the upgrade checks vpac's signature validation record with the normal package and database signature requirements enabled. With `--signed-update "$previous_update_feed"`, the runner compares the existing signed package against the build receipt before staging it and its indexes. The first x86_64 HTTPS run installed the signed update on the candidate kernel. Its test disk and roots can be restored using `replay.sha256` and `restore-paths` in `foundation/ports-candidate-https-upgrades-02/amd64`, archive evidence SHA-256 `a9835ee287eaca1832782f70d46c4a59438751230a7955178b1bd41cfde7679f`.

2229

3-The AArch64 candidate kernel passed the same signed upgrade over HTTPS with the fixture CA installed by subject hash. The peer certificate trust was separate from the CA package being upgraded. See `foundation/ports-candidate-https-upgrades-03/arm64`, archive evidence SHA-256 `9009c349e3ebf106d1adf3e15303ac36274a6ec2a65fee8e3a663c96eda63480`.

230+Both candidate kernels passed the signed upgrade over HTTPS with the fixture CA installed by subject hash. The peer certificate trust was separate from the CA package being upgraded. See `foundation/ports-candidate-https-upgrades-03`, receipt SHA-256 `f4024926fd2ed4666f73fd7c0b65ef5b2e20771ee2a2904c97be0fa7eb25ee33`.

4231

5232The original ext2 files from `vinix-pkg-guest-01`, `vinix-pkg-upgrade-01` and `vpac-transaction-08` are compressed in `foundation/archived-pkg-fixture-disks-01`. Its `restore.tsv` gives their original paths, uncompressed checksums, modes and timestamps. Restore each needed file with `zstd -d --sparse` before rerunning its disk receipt checks. Each expanded archive matched the original checksum before relocation. The archive receipt manifest has SHA-256 `c5b49fbb69cddfe2fcb3828cd1b7316d48b4f1ef90a155fa369f2ba63a32bbf9`.

6233

tests/x11/README.md +2 -0

@@ -83,6 +83,8 @@ python3 tools/bundle-x11.py "$arch" "$desktop_client" "$x11_client" "$auditor" "

8383

8484The tool audits both clients and checks the package versions, modes, link targets and bytes shared with the desktop. It writes the new paths to a root-owned archive under the published name `vinix-x11-amd64.tar.gz` or `vinix-x11-arm64.tar.gz`, with a matching checksum file. The package manager installs from the signed feed. Run `python3 tests/x11/bundle.py` for the archive layout, link preservation and rejection checks. The worker fixture is in `foundation/x11-bundle-fixture-01`, receipt SHA-256 `0a9abdd8e27a93cc6bb6926b1a95b9c7a46e281274c9fd7015a343c8255781dc`.

8585

86+The x86_64 worker installed the exact release bitmap fonts and `mkfontscale` from a signed repository with `CAP_SYS_CHROOT` confined to a private user namespace. vpac ran the bitmap font hook and wrote an index with 335 entries. The cold audit counted 11 packages, 724 owned paths and 20 target ELFs. See `foundation/x86-release-graphics-font-hook-02`, receipt SHA-256 `77684b7d1e0710c0b7472cb12610491bf90a0297b9bd790d88b3e1044afef784`.

87+

8688For the published tarball smoke test, place the sidecar in a disposable copy of the desktop guest root at `/vinix-x11-sidecar.tar.gz` alongside the `egl.v` and `glx.v` probe executables. Prefix the `graphics.sh` fixture with `VINIX_X11_SIDECAR_SHA256` set to the archive's digest from the release manifest. Boot the matching release kernel with `tests/disk-root.py --desktop-init` and use `--space-for` with the full graphics root to reserve room for extraction. The guest verifies the archive, extracts it with packaged BusyBox, checks that `pkg` is unchanged and exercises the same EGL and GLX pixel reads. The worker verified extraction and the DRI hard link with both release BusyBox binaries on a small sidecar fixture. See `foundation/ports-sidecar-busybox-extract-proof-01`, receipt SHA-256 `2af23f5cf0fa836af61eeca8fef7bda77fbf9533a14c8de349d83b6c6fedd185`.

8789

8890Run the native compiler checks in the same guest by placing the [toolchain Makefile and source fixtures](../toolchain/) in `/usr/share/vinix-toolchain-test`. Start `tests/toolchain/guest.sh` with `VINIX_TOOLCHAIN_NEXT_FIXTURE` set to the path of the prepared graphics fixture. The toolchain script prints its completion marker and runs the graphics fixture, which reports the final guest result and powers off.