From b41bb3151b4f73b05fc31159672968d19efd81b5 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 13:53:28 +0100 Subject: [PATCH] Verify the upstream AArch64 desktop watchdog at boot --- PROFILES.md | 2 ++ tests/desktop-guest.py | 6 +++++- tests/userland/desktop.sh | 9 +++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/PROFILES.md b/PROFILES.md index acef762..4df6c12 100644 --- a/PROFILES.md +++ b/PROFILES.md @@ -18,6 +18,8 @@ The upstream source plan orders 157 packages in 14 stages on each architecture. Both btop 1.4.0-1 archives were built against the signed Vinix musl and GNU C++ runtime and checked for their target ELF layout. Each published Vinix kernel booted an eight-package signed root, ran btop's version and help commands, and found the installed theme and manual. See `release-inputs/upstream-7f173671/btop-build-01` and `btop-guests-05`, receipt SHA-256 `888b9bec6a542a464a7f22c5689e894188b1fb1bd22ef8704b91b4bf00aa77a9` and `7c67d8d52bd24eee7c800076b3f3a4407e6c4dc7215fdaa91583873ba906cdcc`. The upstream AArch64 init and watchdog were also built from source and passed static linkage and 16 KiB load-segment checks. See `init-arm16-01`, receipt SHA-256 `20ae3a3806e753b35483f30cb9444f2b9c5aaf11d1e0f00f01b9a0660b4a784d`. +The new AArch64 init also booted a 15-package signed root on the November 28 kernel. The guest verified the watchdog's checksum and observed its process alongside the native graphical session and first-boot registration screen. The fixture used the five native desktop and service binaries from the checksum-pinned published image. See `release-inputs/upstream-7f173671/desktop-arm16-guest-03`, receipt SHA-256 `ae707d9f87deaa8f6d9492c0039d2c94b9867de821b50b5cc7b709b14d310cdf`. + The X11 development sysroot feeds source builds of Xorg/Xvfb 21.1.16 and xf86-video-fbdev 0.5.1. The server's legacy GLX stack additionally consumes four pinned Alpine v3.20 packages on each architecture. These inputs need their exact versions even when the v3.21 scope graph already contains a newer package of the same name. [X11 builder and version pins](https://github.com/vlang/vinix/blob/a58255423edea821aef9b2a0d10cb4091d59355a/scripts/build-x11-aarch64.sh) | v3.20 legacy package | Version | diff --git a/tests/desktop-guest.py b/tests/desktop-guest.py index 836c1e6..22d1027 100644 --- a/tests/desktop-guest.py +++ b/tests/desktop-guest.py @@ -40,9 +40,13 @@ def native_overlay(archive, arch, root): copies.add(name) if copies != set(PROGRAMS): raise ValueError(f"missing release programs: {set(PROGRAMS) - copies}") + watchdog = "usr/libexec/vinix-desktop-watchdog" + checksummed = ["sbin/init", *PROGRAMS] + if (root / watchdog).is_file(): + checksummed.append(watchdog) manifest = root / "desktop-programs.sha256" with manifest.open("x") as output: - for name in ("sbin/init", *PROGRAMS): + for name in checksummed: output.write(f"{digest(root / name)} /{name}\n") diff --git a/tests/userland/desktop.sh b/tests/userland/desktop.sh index c62f5a1..0f63276 100644 --- a/tests/userland/desktop.sh +++ b/tests/userland/desktop.sh @@ -26,10 +26,19 @@ case "$arch" in aarch64) test "$(readlink /proc/1/exe)" = /sbin/init ;; x86_64) tr '\000' '\n'