]> git.proxmox.com Git - mirror_qemu.git/commit - os-posix.c
os: deprecate the -enable-fips option and QEMU's FIPS enforcement
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 20 Oct 2020 16:08:27 +0000 (17:08 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 29 Jan 2021 17:07:53 +0000 (17:07 +0000)
commit166310299a1e7824bbff17e1f016659d18b4a559
treed4832fe55bca945eb17a72832922cfda7ab981cd
parentab366aae78bcac972a0920ffdda3136fc13fa093
os: deprecate the -enable-fips option and QEMU's FIPS enforcement

The -enable-fips option was added a long time ago to prevent the use of
single DES when VNC when FIPS mode is enabled. It should never have been
added, because apps are supposed to unconditionally honour FIPS mode
based on the '/proc/sys/crypto/fips_enabled' file contents.

In addition there is more to achieving FIPS compliance than merely
blocking use of certain algorithms. Those algorithms which are used
need to perform self-tests at runtime.

QEMU's built-in cryptography provider has no support for self-tests,
and neither does the nettle library.

If QEMU is required to be used in a FIPS enabled host, then it must be
built with the libgcrypt library enabled, which will unconditionally
enforce FIPS compliance in any algorithm usage.

Thus there is no need to keep either the -enable-fips option in QEMU, or
QEMU's internal FIPS checking methods.

Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
docs/system/deprecated.rst
os-posix.c