Commit 841298f
committed
tests/readonly: Add SELinux enforcing check
Verify that SELinux is in enforcing mode at the start of the readonly
test suite. This catches accidental regressions where test images
ship with permissive mode or enforcing=0 on the kernel command line.
The check is skipped for composefs upgrade tests where enforcing=0
is intentionally needed due to the base image SELinux policy not yet
covering composefs file contexts.
Assisted-by: OpenCode (Claude claude-opus-4-6)
Signed-off-by: Colin Walters <walters@verbum.org>1 parent 7e3e24e commit 841298f
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments