qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* -enablefips
@ 2020-06-24  3:51 John Snow
  2020-06-24  6:49 ` -enablefips Gerd Hoffmann
  2020-06-24  9:05 ` -enablefips Daniel P. Berrangé
  0 siblings, 2 replies; 6+ messages in thread
From: John Snow @ 2020-06-24  3:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: Daniel P. Berrange, Markus Armbruster, Gerd Hoffmann

I never knew what this option did, but the answer is ... strange!

It's only defined for linux, in os-posix.c. When called, it calls
fips_set_state(true), located in osdep.c.

This will read /proc/sys/crypto/fips_enabled and set the static global
'fips_enabled' to true if this setting is on.

(Tangent: what does *this* setting actually control? Should QEMU
meaningfully change its behavior when it's set?)

This static global is exposed via the getter fips_get_state(). This
function is called only by vnc.c, and appears to disable the use of the
password option for -vnc.

This seems very high-level and abstract for something that ultimately
only disables VNC password authentication. Is this misleadingly abstract?

The docs state:
"enable FIPS 140-2 compliance"

Like hell it does.

Can we deprecate this? It was added in 2012 and never seemed to pursue
the mission laid out in the help file. If we do still want it, the
documentation should be changed dramatically to reflect what it actually
does.

This is so at risk of bit-rot, and a misleading crypto flag is certainly
worse than no crypto flag. I think it should just go.

(If we really do want to keep it, it should probably go under -global
somewhere instead to help reduce flag clutter, but we'd need to have a
chat about what fips compliance means for literally every other spot in
QEMU that is capable of using or receiving a cleartext password.)

--js



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-24 15:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-24  3:51 -enablefips John Snow
2020-06-24  6:49 ` -enablefips Gerd Hoffmann
2020-06-24  8:34   ` -enablefips Markus Armbruster
2020-06-24  8:58   ` -enablefips Daniel P. Berrangé
2020-06-24 15:09   ` -enablefips John Snow
2020-06-24  9:05 ` -enablefips Daniel P. Berrangé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).