From 4e4bb7c62f86f87fa8f9837114f09867a18ae391 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 03:05:25 +0100 Subject: [PATCH] Trace release identity and trust replacements to installed Vinix owners --- PROFILES.md | 2 ++ tools/release-owners.py | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/PROFILES.md b/PROFILES.md index 7106817..c8f9ae3 100644 --- a/PROFILES.md +++ b/PROFILES.md @@ -96,4 +96,6 @@ The same checker writes `relocations.tsv` for original paths whose expected owne On both architectures the published X11 sidecar retains one matching GLU development file, `usr/include/GL/glu.h`, assigned to `glu-headers`, and two libelf paths assigned to `libelf`. The current Mesa DRI modules belong to `mesa`. The v3.20 modules belong to `mesa-glx-legacy`. The reference comparison distinguishes the two branches even when the Alpine binary names match. See `foundation/graphics-owners-02`, receipt SHA-256 `1fab0e9d2ab6b298471b10326d2e51b26de2b8efc1dc2fdca81fb344e84f17c9`. +`replacements.tsv` records the native owner for repository keys, OS identification and package management. The audited 106-package x86_64 root supplies `vinix-keyring` for all 43 distinct Alpine public-key paths and `vinix-release` for operating system identification. Seeding the installed certificate with the independently supplied test fingerprint verified the signed repository index. The root's `etc/os-release` contains `ID=vinix`. Its package-manager row still requires an installed `usr/bin/vpac`. The reference table preserves the original missing paths and the expected and installed owner separately. See `foundation/native-substitutions-02`, receipt SHA-256 `928b4bb088a1305fc66871b9a6c5d3c3d4b7c34a70daef6c6fddd35a2fb46c96`. + Both targets also passed a fresh signed install of musl, `vinix-accounts`, `vinix-filesystem` and `netbase`. Each root had 252 owned files and links and six target ELFs. Run `python3 tests/layout.py "$client/root"` after the installed-root audit to check the modes on shadow, root and the temporary directories, the runtime symlinks and the account and network defaults. The worker retains both runs in `foundation/layout-03` with receipt manifest SHA-256 `d5c1cba079ab9cb1f04f2de7f17ab9d270e9066fc2472ac486fd079fa1139a1e`. diff --git a/tools/release-owners.py b/tools/release-owners.py index 020d45e..bc5019a 100644 --- a/tools/release-owners.py +++ b/tools/release-owners.py @@ -100,6 +100,17 @@ def relocated(row, path, arch, versions): return None +def replacement(row, path): + if row["binary"] == "alpine-keys" and path.endswith(".rsa.pub"): + if path.startswith(("etc/apk/keys/", "usr/share/apk/keys/")): + return "usr/share/vpac/keyrings/vinix.gpg", "vinix-keyring", "repository trust" + if row["binary"] == "alpine-release" and path == "etc/alpine-release": + return "etc/os-release", "vinix-release", "operating system identity" + if row["binary"] == "apk-tools" and path == "sbin/apk": + return "usr/bin/vpac", "vpac", "package management" + return None + + def rows(path): with path.open() as stream: yield from csv.DictReader(stream, delimiter="\t") @@ -136,6 +147,7 @@ def compare(args): details = defaultdict(Counter) seen = set() moved = [] + replacements = [] args.output.mkdir() if audit: (args.output / "installed-root.log").write_text(audit) @@ -160,10 +172,20 @@ def compare(args): target = relocated(packages[k], path, args.arch, versions) if target and owners.get(target) in expected: moved.append((*k, row["layer"], path, target, owners[target])) + change = replacement(packages[k], path) + if change: + native, package, function = change + replacements.append((*k, row["layer"], path, native, package, + owners.get(native, ""), function)) with (args.output / "relocations.tsv").open("x") as stream: writer = csv.writer(stream, delimiter="\t", lineterminator="\n") writer.writerow(["binary", "version", "repository", "layer", "published_path", "installed_path", "owner"]) writer.writerows(sorted(moved)) + with (args.output / "replacements.tsv").open("x") as stream: + writer = csv.writer(stream, delimiter="\t", lineterminator="\n") + writer.writerow(["binary", "version", "repository", "layer", "published_path", "native_path", + "expected_owner", "installed_owner", "function"]) + writer.writerows(sorted(replacements)) with (args.output / "packages.tsv").open("x") as stream: writer = csv.writer(stream, delimiter="\t", lineterminator="\n") writer.writerow(["binary", "version", "repository", "origin", "profiles", "expected_packages", -- 2.56.1