Make Fedora/Rocky a tested SELinux tier in the e2e harness #64

Merged
jcoffey-dev merged 1 commits from feat/selinux-tier into main 2026-11-13 16:34:44 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 8a9e61b508 Make Fedora/Rocky a tested SELinux tier in the e2e harness
ci / test (pull_request) Successful in 36s
On the Red Hat family the installer runs under SELinux enforcing, and
SELinux has stopped it before -- a container could not read a directory
mounted into it (internal/apply/upgrade.go). The lab already offers
Fedora and Rocky; this makes a denial there a test failure.

run.sh, on a guest where SELinux is enforcing, notes the time before the
case and reads the audit log after it: any AVC denial in the installer's
footprint (its containers or /var/lib/inbuxa) fails the run even when the
case's own checks passed, because a denial it happened to survive today
is a latent break. SELINUX_IGNORE=1 downgrades that to a warning, and on
a distribution without SELinux enforcing nothing changes. lib.sh gains
the three helpers it uses.

e2e/cases/selinux.sh drives the paths that have been caught before --
install in containers, then a backup, which archives the server's
volumes through a container, then converge -- and after each confirms no
denial and that SELinux is still enforcing. It skips and passes where
SELinux is not the thing under test.
2026-11-13 09:30:29 -07:00