Commit 507a7fa
committed
fix(audit): apply 2026-05-05 audit findings (LAW3/LAW6/security/supply-chain)
Implements the remediation set captured in AUDIT-FINDINGS-20260505.md.
Architectural laws:
- LAW 3 (BOUND-IMAGES): add usr/lib/bootc/bound-images.d/ symlinks for
mios-forgejo-runner, mios-forge, mios-cockpit-link (mode 120000).
Fixes 3-of-12 Quadlets that had no deploy-time image binding.
- LAW 6 (UNPRIVILEGED-QUADLETS): document the mios-forgejo-runner
root-uid exception in INDEX.md sec 3 row 6 and the Quadlet header.
The runner needs uid=0 to drive `podman build -f /Containerfile`
against rootful storage and produce an image consumable by
`bootc switch --transport containers-storage`.
Security posture:
- fapolicyd: tighten the uid=0 catch-all to `trust=1` so RPM-signed
binaries (every system service) stay unblocked while ad-hoc
uid=0-owned binaries dropped under /tmp, /var, /home are denied.
Restores the deny-by-default posture documented in README.md.
- kargs.d: drop lockdown=confidentiality from 01-mios-hardening.toml.
bootc kargs.d is additive across files; the previous form put both
`confidentiality` and `integrity` on the kernel command line.
30-security.toml's intent (integrity, NVIDIA-MOK-safe) is now the
sole declared value.
Supply chain integrity:
- Pin every Quadlet Image= ref to a digest. Switches the deploy
surface from floating tags to deterministic pulls; Renovate
remains the path to digest bumps.
- mios-ceph: :latest -> :v18@sha256:... (the value the file's own
header comment claims and the only valid Reef tag on
quay.io/ceph/ceph; :latest does not exist upstream).
- mios-forgejo-runner: :6.5 -> :6@sha256:... (:6.5 does not exist on
code.forgejo.org; only the floating :6 line is published).
Hygiene:
- automation/10-gnome.sh comment: install_weakdeps -> install_weak_deps.
- automation/19-k3s-selinux.sh: cp -p for re-run idempotency.
- mios-gpu-pv-detect / mios-sriov-init / mios-verify Description=:
bare 'MiOS-OS' -> project-wide quoted 'MiOS' form.1 parent d384a69 commit 507a7fa
23 files changed
Lines changed: 50 additions & 20 deletions
File tree
- automation
- etc
- containers/systemd
- fapolicyd
- usr
- lib
- bootc
- bound-images.d
- kargs.d
- systemd/system
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
23 | 33 | | |
24 | 34 | | |
25 | 35 | | |
| |||
35 | 45 | | |
36 | 46 | | |
37 | 47 | | |
38 | | - | |
| 48 | + | |
39 | 49 | | |
40 | 50 | | |
41 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
2 | 15 | | |
3 | 16 | | |
4 | 17 | | |
0 commit comments