me

/

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

Trace release identity and trust replacements to installed Vinix owners

diviocity committed 5 days ago · 4e4bb7c62f86f87fa8f9837114f09867a18ae391 View patch
Unverified signature 2 files changed +24 -0
PROFILES.md +2 -0

@@ -96,4 +96,6 @@ The same checker writes `relocations.tsv` for original paths whose expected owne

9696

9797On 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`.

9898

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

100+

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

tools/release-owners.py +22 -0

@@ -100,6 +100,17 @@ def relocated(row, path, arch, versions):

100100 return None

101101

102102

103+def replacement(row, path):

104+ if row["binary"] == "alpine-keys" and path.endswith(".rsa.pub"):

105+ if path.startswith(("etc/apk/keys/", "usr/share/apk/keys/")):

106+ return "usr/share/vpac/keyrings/vinix.gpg", "vinix-keyring", "repository trust"

107+ if row["binary"] == "alpine-release" and path == "etc/alpine-release":

108+ return "etc/os-release", "vinix-release", "operating system identity"

109+ if row["binary"] == "apk-tools" and path == "sbin/apk":

110+ return "usr/bin/vpac", "vpac", "package management"

111+ return None

112+

113+

103114def rows(path):

104115 with path.open() as stream:

105116 yield from csv.DictReader(stream, delimiter="\t")

@@ -136,6 +147,7 @@ def compare(args):

136147 details = defaultdict(Counter)

137148 seen = set()

138149 moved = []

150+ replacements = []

139151 args.output.mkdir()

140152 if audit:

141153 (args.output / "installed-root.log").write_text(audit)

@@ -160,10 +172,20 @@ def compare(args):

160172 target = relocated(packages[k], path, args.arch, versions)

161173 if target and owners.get(target) in expected:

162174 moved.append((*k, row["layer"], path, target, owners[target]))

175+ change = replacement(packages[k], path)

176+ if change:

177+ native, package, function = change

178+ replacements.append((*k, row["layer"], path, native, package,

179+ owners.get(native, ""), function))

163180 with (args.output / "relocations.tsv").open("x") as stream:

164181 writer = csv.writer(stream, delimiter="\t", lineterminator="\n")

165182 writer.writerow(["binary", "version", "repository", "layer", "published_path", "installed_path", "owner"])

166183 writer.writerows(sorted(moved))

184+ with (args.output / "replacements.tsv").open("x") as stream:

185+ writer = csv.writer(stream, delimiter="\t", lineterminator="\n")

186+ writer.writerow(["binary", "version", "repository", "layer", "published_path", "native_path",

187+ "expected_owner", "installed_owner", "function"])

188+ writer.writerows(sorted(replacements))

167189 with (args.output / "packages.tsv").open("x") as stream:

168190 writer = csv.writer(stream, delimiter="\t", lineterminator="\n")

169191 writer.writerow(["binary", "version", "repository", "origin", "profiles", "expected_packages",