me

/

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

Verify the upstream AArch64 desktop watchdog at boot

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

@@ -18,6 +18,8 @@ The upstream source plan orders 157 packages in 14 stages on each architecture.

1818

1919Both 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`.

2020

21+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`.

22+

2123The 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)

2224

2325| v3.20 legacy package | Version |

tests/desktop-guest.py +5 -1

@@ -40,9 +40,13 @@ def native_overlay(archive, arch, root):

4040 copies.add(name)

4141 if copies != set(PROGRAMS):

4242 raise ValueError(f"missing release programs: {set(PROGRAMS) - copies}")

43+ watchdog = "usr/libexec/vinix-desktop-watchdog"

44+ checksummed = ["sbin/init", *PROGRAMS]

45+ if (root / watchdog).is_file():

46+ checksummed.append(watchdog)

4347 manifest = root / "desktop-programs.sha256"

4448 with manifest.open("x") as output:

45- for name in ("sbin/init", *PROGRAMS):

49+ for name in checksummed:

4650 output.write(f"{digest(root / name)} /{name}\n")

4751

4852

tests/userland/desktop.sh +9 -0

@@ -26,10 +26,19 @@ case "$arch" in

2626 aarch64) test "$(readlink /proc/1/exe)" = /sbin/init ;;

2727 x86_64) tr '\000' '\n' </proc/1/cmdline | grep -Fx /sbin/init ;;

2828esac

29+watchdog=

30+watchdog_program=/usr/libexec/vinix-desktop-watchdog

2931for attempt in $(seq 1 60); do

32+ if [ -x "$watchdog_program" ] && [ -z "$watchdog" ]; then

33+ watchdog=$(find_command "$watchdog_program") || true

34+ fi

3035 if session=$(find_command '/usr/sbin/vinix-session graphical --desktop /usr/bin/vinix-desktop') &&

3136 registration=$(find_command '/usr/bin/vinix-desktop --register-only') &&

3237 /framebuffer-check; then

38+ if [ -x "$watchdog_program" ]; then

39+ test -n "$watchdog"

40+ echo "desktop watchdog PID $watchdog"

41+ fi

3342 echo "graphical session PID $session, registration PID $registration"

3443 echo 'VPAC FIXTURE GUEST PASS'

3544 exit 0