commit 31304a1e5e24088b30cc422df35e67032fd9656e
parent 89d0b4e3fdb4b9e60de377f8a1491b34a88391fe
Author: Divan Visagie <me@divanv.com>
Date: Sat, 21 Nov 2026 11:24:34 +0100
ADR-0014: the installed system's SELinux labelling, checked
Diffstat:
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/docs/adr/0014-the-live-disc-boots-straight-into-the-installer.md b/docs/adr/0014-the-live-disc-boots-straight-into-the-installer.md
@@ -168,7 +168,20 @@ Found on the way:
- **The image names:** the ISO's payload and the installed machine's update target are both
`sectorf-linux:latest` for a release; the dev image keeps its own name.
-Not yet checked, as before: the SELinux labelling of the installed system, several drives and a USB
+**SELinux labelling of the installed system, checked (2026-11-21):** the live system runs with
+`selinux=0`, so the drive is labelled from outside a running SELinux; the question was whether that
+comes out right. Booted drive A alone (GRUB's menu is hidden, so by hand from its prompt, with
+`systemd.debug_shell=1` for that boot only and the entry's other options): enforcing, no denials in the
+kernel log since boot, and the labels on `/`, `/usr`, `/etc`, `/etc/shadow`, `/var/home`,
+`/usr/bin/bash`, `/usr/libexec/patina-greeter` and `/var/lib/greetd` (`xdm_var_lib_t`) are the
+policy's. `restorecon -nR` finds 346 files off, and the dev VM (installed from a host with SELinux on)
+has the same 346: `/boot/grub2/**` and the like are `default_t` where policy says `boot_t`, and
+`/var/.ostree-selabeled` is `usr_t`. So the live install labels as well as the stock path does, and the
+`/boot` mislabel is bootc's or bootupd's, not ours (not looked into; `/boot` is readable by the domains
+that use it, with nothing denied). `restorecon` over `/sysroot` reports 161k files and means nothing:
+the deployments' own paths are not where policy expects them.
+
+Not yet checked, as before: several drives and a USB
stick as the live medium, Secure Boot, a power cut half way, real hardware, and GRUB's countdown.
The 1.53 GB layer still sets the RAM the install needs.