diff --git a/test/README.testsuite b/test/README.testsuite index da2d17a6dba..6b367aa6738 100644 --- a/test/README.testsuite +++ b/test/README.testsuite @@ -151,6 +151,16 @@ that make use of `run_testcases`. `TEST_SKIP_TESTCASE=testcase`: takes a space separated list of testcases to skip. +### SELinux AVCs + +To have `TEST-06-SELINUX` check for SELinux denials, write the following to +mkosi.local.conf: + +```conf +[Runtime] +KernelCommandLineExtra=systemd.setenv=TEST_SELINUX_CHECK_AVCS=1 +``` + ## Ubuntu CI New PRs submitted to the project are run through regression tests, and one set diff --git a/test/fmf/integration-tests/test.sh b/test/fmf/integration-tests/test.sh index 4545090c3c1..fccfa15c728 100755 --- a/test/fmf/integration-tests/test.sh +++ b/test/fmf/integration-tests/test.sh @@ -69,6 +69,13 @@ ToolsTreeDistribution=$ID ToolsTreeRelease=${VERSION_ID:-rawhide} EOF +if [[ -n "${TEST_SELINUX_CHECK_AVCS:-}" ]]; then + tee --append mkosi.local.conf <