me

/

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

Record the signed pkg transaction in the x86_64 guest

diviocity committed 5 days ago · d720cb64290926da3f4077caf2324ea38c4139a8 View patch
Unverified signature 1 files changed +2 -0
tests/FEED.md +2 -0

@@ -157,4 +157,6 @@ The installed-root auditor checks each nonempty ELF load segment against the rel

157157

158158Run the target vpac binary on the release kernel with `python3 tests/vpac-guest.py "$arch" "$repo" "$test_keys" "$fingerprint_file" "$update_receipt" "$auditor" "$boot" "$iso" "$output"`. Use a signed initial feed containing netbase and CA bundle release 2 and pass the receipt for CA bundle release 3. The guest has no network interface. The fixture tests a same-length package modification, authentic installation, local and remote lookup, and a signed in-place upgrade. Pass `--scenario install` or `--scenario upgrade` to replay either operation on a fresh copy of the same image inputs. The runner defaults to 720 seconds under QEMU TCG. `VINIX_QEMU_TIMEOUT` overrides that limit in seconds. Set `VINIX_QEMU_ACCEL=kvm` when the host matches the guest architecture and the worker can open `/dev/kvm`.

159159

160+For the public `pkg` command, install `vinix-pkg`, `busybox-init`, `vinix-keyring`, `vinix-accounts` and `vinix-filesystem` from a signed feed that also contains `netbase`. Stage the installed root under `umask 077` and boot it using `python3 tests/disk-root.py "$arch" "$image/root" tests/userland/pkg.sh "$iso" "$boot" "$output"`. The x86_64 guest refreshed the signed seed index, looked up an exact name and an unmatched prefix, installed `netbase` with signature validation, checked file ownership, and removed the package. The worker verified 41 signed installed records and a 43-package seed. The directory and index modes allow the unprivileged downloader to read the seed and reach its sync work directory. The GnuPG home has mode 0700. See `foundation/vinix-pkg-guest-02`, receipt SHA-256 `695cd4c4b62a2554363b733683985ea7d655bc848e24ecec7368a944eb551c47`.

161+

160162To exercise the original release binaries against the installed libraries on a worker of the same architecture, run `python3 tests/exec-linkage.py "$arch" "$client" "$auditor" --proot "$proot" --release "$archive" "$sha256" "$report"`. The probe binds one original executable over its guest path and runs the installed musl loader with `--list`. A negative control changed a library import in the original input and verified that the installed loader diagnosed the changed SONAME. In the 129-package x86_64 root, 52 of 95 dynamic image executables relocated, 27 reported failures and 16 fixed-address executables needed direct execution. Twelve of 17 X11 sidecar executables relocated. See `foundation/release-binary-relocation-02`, receipt SHA-256 `8483666ef4294f1ac5d44c1eb637a8f5200be4e613e635d835ef4f86e7ffa37b`. Directly starting the release `cpp` and `cc1` in that root expanded `__SIZEOF_POINTER__` to 8. See `foundation/release-original-exec-02`, receipt SHA-256 `b9f1659e4669df9f3d4aeddea37fd9b85abc40f9d55045fff1fc7096f091a209`.