diff --git a/ipatests/pytest_ipa/integration/fips.py b/ipatests/pytest_ipa/integration/fips.py index eef297349..694ec8a99 100644 --- a/ipatests/pytest_ipa/integration/fips.py +++ b/ipatests/pytest_ipa/integration/fips.py @@ -37,6 +37,9 @@ def enable_userspace_fips(host): # fake Kernel FIPS mode with bind mount host.run_command(["mkdir", "-p", FIPS_OVERLAY_DIR]) host.put_file_contents(FIPS_OVERLAY, "1\n") + host.run_command( + ["chcon", "-t", "sysctl_crypto_t", "-u", "system_u", FIPS_OVERLAY] + ) host.run_command( ["mount", "--bind", FIPS_OVERLAY, paths.PROC_FIPS_ENABLED] )