diff options
author | Paul Moore <pmoore@redhat.com> | 2012-08-03 14:39:21 -0400 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-08-03 14:28:40 -0500 |
commit | 0f66998ff6d5d2133b9b08471a44e13b11119e50 (patch) | |
tree | 498ceec7d881257c2564998762cd635014c51e8d /vl.c | |
parent | 2ad728bd4bf26d8144190ca87d5d36d5f33cfae9 (diff) |
vnc: disable VNC password authentication (security type 2) when in FIPS mode
FIPS 140-2 requires disabling certain ciphers, including DES, which is used
by VNC to obscure passwords when they are sent over the network. The
solution for FIPS users is to disable the use of VNC password auth when the
host system is operating in FIPS compliance mode and the user has specified
'-enable-fips' on the QEMU command line.
This patch causes QEMU to emit a message to stderr when the host system is
running in FIPS mode and a VNC password was specified on the commend line.
If the system is not running in FIPS mode, or is running in FIPS mode but
VNC password authentication was not requested, QEMU operates normally.
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -159,6 +159,7 @@ int main(int argc, char **argv) #include "qemu-queue.h" #include "cpus.h" #include "arch_init.h" +#include "osdep.h" #include "ui/qemu-spice.h" @@ -3198,6 +3199,9 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_qtest_log: qtest_log = optarg; break; + case QEMU_OPTION_enablefips: + fips_set_state(true); + break; default: os_parse_cmd_args(popt->index, optarg); } |