Install and verify the Vinix base layout on both architectures
@@ -39,13 +39,13 @@ Both desktop builders then remove `libOSMesa.so*`, `libGLU.so*` and `libxatracke
3939| --- | --- |
4040| `musl`, `zlib` | The `musl` and `zlib` ports own the target loader, C library and compression library. |
4141| `libcrypto3`, `libssl3` | The `openssl` port builds both shared libraries from one source. |
42-| `ca-certificates-bundle` | The native bundle provides `/etc/ssl/cert.pem`, the concatenated CA store and the individual Mozilla authorities. Check for consumers of the old `/etc/ssl1.1` aliases when auditing the final root. |
42+| `ca-certificates-bundle` | The native bundle provides `/etc/ssl/cert.pem`, the concatenated CA store, the individual Mozilla authorities and the published `/etc/ssl1.1` aliases. The separate maintenance port supplies `update-ca-certificates`, `c_rehash` and the default trust selections. |
4343| `busybox`, `busybox-binsh` | The BusyBox port owns `/bin/sh`. Expand the bootstrap applet configuration to cover the shell commands in both release images. Check the applet paths against the other packages during a signed install. |
4444| `ssl_client` | The `ssl-client` port builds `/usr/bin/ssl_client` against OpenSSL. Its x86_64 fixture verifies a trusted peer and rejects an unrelated CA and a wrong hostname. BusyBox wget still needs a guest test with the release applet configuration. |
4545| `musl-utils`, `scanelf` | The source-built `musl-utils` supplies `getconf`, `getent`, `iconv`, `ldconfig` and a target-specific musl `ldd` wrapper. Its `ldconfig` script uses the packaged `scanelf` from pax-utils. Both ports passed x86_64 recipe checks and installed together in the signed userland root. Verify the arm64 toolchain against its own loader. |
4646| `alpine-release` | `vinix-release` supplies the OS identity and banners. The image builder supplies the image-specific `/etc/vinix-release` tag. |
47-| `alpine-baselayout`, `alpine-baselayout-data` | `vinix-accounts` supplies Vinix's initial account databases. A signed upgrade preserved edited passwd, group and shadow, and made the changed group defaults available in `group.pacnew`. Compare the old amd64 service accounts with consumers before deploying the compact Vinix defaults. Remaining paths include shell profiles, the network registries, runtime links and the release-specific init configuration. |
48-| `apk-tools`, `alpine-keys` | Build target vpac and its OpenPGP dependencies. Update the Vinix `pkg` frontend, package persistence and release image checks that currently use APK paths. Install the release public key through a trusted image and verify on both architectures that vpac rejects a tampered package. |
47+| `alpine-baselayout`, `alpine-baselayout-data` | `vinix-accounts` supplies the initial account databases, `vinix-filesystem` supplies directories, runtime links and host/login policy, and `netbase` supplies service and protocol names. A signed upgrade preserved edited passwd, group and shadow and wrote the changed default group to `group.pacnew`. Check service-account consumers and the release-specific init configuration during image assembly. |
48+| `apk-tools`, `alpine-keys` | The `vinix-keyring` recipe packages an independently pinned public certificate. The worker verified that the seeded keyring can install a signed package offline. Build target vpac and GnuPG, switch the Vinix `pkg` frontend, persistence and image checks, provision the release signer and repeat tamper rejection inside both guests. |
4949
5050The pinned archives and live v3.21 indexes in the November 2026 worker inventory yield 239 input rows per architecture, including 229 distinct binary names and 135 source origins. Of the 229 names, 50 occur only through X11 index dependencies. Keep the per-architecture inventory outside Git beside its input hashes.
5151
@@ -87,3 +87,7 @@ python3 tools/release-owners.py aarch64 "$release/arm64/comparison" "$work/arm-p
8787```
8888
8989The 62-package x86_64 root for the November 28 image had 3,899 matching input/layer/path observations. It had 928 with an expected owner, 117 with another owner and 2,854 without an owner in this snapshot. The same path can appear in more than one Alpine package version or release layer. Rebuilt bytes normally differ, and matching an owned path still leaves ABI and runtime behavior to verify. The arm64 baseline had 4,019 observations awaiting an installed root. The worker retains the per-row results and hashes in `amd64/owners-62` and `arm64/owners-pending` beside the release comparisons.
90+
91+The first arm64 SDK provided 231 of those 4,019 matching paths under their expected owner. The comparison in `arm64/owners-runtime-01` records the other 3,788. Both architectures' owner tables now assign the versioned GCC runtime libraries to `gcc-libs`.
92+
93+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`.
@@ -0,0 +1,26 @@
1+defpkgbuild(netbase,
2+ #:pkgname, "netbase",
3+ #:pkgver, "6.4",
4+ #:pkgrel, 1,
5+ #:pkgdesc, "IP protocol and network service name registries",
6+ #:url, "https://salsa.debian.org/md/netbase",
7+ #:arch, [#:any],
8+ #:license, "GPL-2.0-only",
9+ #:backup, ["etc/protocols", "etc/services"],
10+ #:source, ["protocols::https://salsa.debian.org/md/netbase/-/raw/v6.4/etc/protocols",
11+ "services::https://salsa.debian.org/md/netbase/-/raw/v6.4/etc/services",
12+ "copyright::https://salsa.debian.org/md/netbase/-/raw/v6.4/debian/copyright"],
13+ #:sha256sums, ["4959498abbadaa1e50894a266f8d0d94500101cfe5b5f09dcad82e9d5bdfab46",
14+ "f6183055fd949f9c53d49ee620f85d0150123ea691d25ed1bba0c641b4ee2f48",
15+ "795b66147ea5ad692991caa7008ece551fb0fa88b9c53656223bd1518dc58ab2"],
16+ #:check, fn() {
17+ run("grep", "-Eq", "^tcp[[:space:]]+6[[:space:]]", "protocols")
18+ run("grep", "-Eq", "^ssh[[:space:]]+22/tcp", "services")
19+ run("grep", "-Eq", "^domain[[:space:]]+53/udp", "services")
20+ },
21+ #:package, fn() {
22+ for-each(fn(file) {
23+ run("install", "-Dm644", file, string-append(pkgdir(), "/etc/", file))
24+ }, list("services", "protocols"))
25+ run("install", "-Dm644", "copyright", string-append(pkgdir(), "/usr/share/licenses/netbase/copyright"))
26+ })
@@ -0,0 +1,36 @@
1+"""Verify Vinix filesystem policy and the network registries in a new vpac-installed root."""
2+import argparse
3+import os
4+import stat
5+from pathlib import Path
6+
7+
8+def require(condition, message):
9+ if not condition:
10+ raise ValueError(message)
11+
12+
13+def check(root):
14+ for path, mode in (("tmp", 0o1777), ("var/tmp", 0o1777), ("root", 0o700),
15+ ("etc/shadow", 0o600), ("etc/passwd", 0o644), ("etc/group", 0o644)):
16+ require(stat.S_IMODE((root / path).lstat().st_mode) == mode, f"incorrect mode on {path}")
17+ for path in ("dev/pts", "dev/shm", "proc", "sys", "home", "run/lock", "var/lib", "etc/profile.d"):
18+ require(stat.S_ISDIR((root / path).lstat().st_mode), f"directory missing at {path}")
19+ for path, target in (("var/run", "../run"), ("var/lock", "../run/lock"), ("etc/mtab", "/proc/mounts")):
20+ require(os.readlink(root / path) == target, f"unexpected link at {path}")
21+ for path, field in (("etc/passwd", "root:x:0:0:root:/root:/bin/sh"),
22+ ("etc/group", "root:x:0:"), ("etc/hostname", "vinix"), ("etc/shells", "/bin/sh")):
23+ require(field in (root / path).read_text().splitlines(), f"missing {field} in {path}")
24+ for path, expected in (("etc/services", {"domain": "53/udp", "ssh": "22/tcp"}),
25+ ("etc/protocols", {"tcp": "6", "udp": "17"})):
26+ entries = {tuple(row[:2]) for line in (root / path).read_text().splitlines()
27+ if len(row := line.split("#")[0].split()) >= 2}
28+ for entry in expected.items():
29+ require(entry in entries, f"missing {entry} in {path}")
30+ print("Vinix directories, modes, links, accounts and service/protocol registries passed")
31+
32+
33+if __name__ == "__main__":
34+ parser = argparse.ArgumentParser(description=__doc__)
35+ parser.add_argument("root", type=Path)
36+ check(parser.parse_args().root)
@@ -23,6 +23,10 @@ SOURCE_OWNERS = {
2323}
2424BINARY_OWNERS = {
2525 "ca-certificates-bundle": ("ca-certificates-bundle",),
26+ "libatomic": ("gcc-libs",),
27+ "libgcc": ("gcc-libs",),
28+ "libgomp": ("gcc-libs",),
29+ "libstdc++": ("gcc-libs",),
2630 "libuuid": ("libuuid",),
2731 "musl-utils": ("musl-utils",),
2832 "ssl_client": ("ssl-client",),
@@ -0,0 +1,36 @@
1+defpkgbuild(vinix-filesystem,
2+ #:pkgname, "vinix-filesystem",
3+ #:pkgver, "0.1.0",
4+ #:pkgrel, 1,
5+ #:pkgdesc, "Vinix filesystem directories, runtime links, host policy and login environment",
6+ #:arch, [#:any],
7+ #:url, "https://github.com/vlang/vinix",
8+ #:license, "GPL-2.0-or-later",
9+ #:backup, ["etc/hosts", "etc/hostname", "etc/nsswitch.conf", "etc/shells", "etc/profile"],
10+ #:source, ["hosts", "hostname", "nsswitch.conf", "shells", "profile"],
11+ #:sha256sums, ["b69b2c741be48691edabe3771c644c70473ccd6aa8effd9f17cc07fa129917f9",
12+ "251a9fbf3ef48f76ea758f161e04f8e2ffc27d712bd4993a4763e53163dbd0f4",
13+ "2ad90a00ddc40e2931e9da1b7c943a5d40d15039436ea2e20442d47c0916959e",
14+ "7da658925aa565924877b098d2d61eba65190943266973a37182fc96b8f89cdb",
15+ "1ecc0432bad0127ea5747b9741c5706427b71536fd7ac4426b4a59b532753835"],
16+ #:check, fn() {
17+ run("sh", "-n", "profile")
18+ run("grep", "-Fx", "/bin/sh", "shells")
19+ run("grep", "-Fx", "hosts: files dns", "nsswitch.conf")
20+ },
21+ #:package, fn() {
22+ for-each(fn(dir) {
23+ run("install", "-d", "-m755", string-append(pkgdir(), "/", dir))
24+ }, list("bin", "sbin", "dev", "dev/pts", "dev/shm", "proc", "sys", "home", "etc/profile.d",
25+ "etc/sysctl.d", "run/lock", "mnt", "media", "opt", "srv", "lib", "usr/bin", "usr/lib",
26+ "usr/sbin", "usr/share", "usr/local/bin", "usr/local/lib", "usr/local/sbin", "usr/local/share",
27+ "var/cache", "var/lib", "var/log", "var/spool"))
28+ run("install", "-d", "-m700", string-append(pkgdir(), "/root"))
29+ run("install", "-d", "-m1777", string-append(pkgdir(), "/tmp"), string-append(pkgdir(), "/var/tmp"))
30+ for-each(fn(file) {
31+ run("install", "-Dm644", file, string-append(pkgdir(), "/etc/", file))
32+ }, list("hosts", "hostname", "nsswitch.conf", "shells", "profile"))
33+ run("ln", "-s", "../run", string-append(pkgdir(), "/var/run"))
34+ run("ln", "-s", "../run/lock", string-append(pkgdir(), "/var/lock"))
35+ run("ln", "-s", "/proc/mounts", string-append(pkgdir(), "/etc/mtab"))
36+ })
@@ -0,0 +1 @@
1+vinix
@@ -0,0 +1,2 @@
1+127.0.0.1 localhost
2+::1 localhost
@@ -0,0 +1 @@
1+hosts: files dns
@@ -0,0 +1,14 @@
1+export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
2+export PAGER=less
3+umask 022
4+if [ -n "${ZSH_VERSION:-}" ]; then
5+ PS1='%m:%~%# '
6+elif [ -n "${BB_ASH_VERSION:-}" ] || [ -n "${BASH_VERSION:-}" ]; then
7+ PS1='\h:\w\$ '
8+fi
9+for script in /etc/profile.d/*.sh; do
10+ if [ -r "$script" ]; then
11+ . "$script"
12+ fi
13+done
14+unset script
@@ -0,0 +1,3 @@
1+/bin/sh
2+/bin/ash
3+/bin/zsh