From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQ308-0003LJ-PD for qemu-devel@nongnu.org; Thu, 03 May 2012 16:51:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQ306-0004AQ-Qa for qemu-devel@nongnu.org; Thu, 03 May 2012 16:51:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQ306-00049S-GE for qemu-devel@nongnu.org; Thu, 03 May 2012 16:51:46 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q43KpgLH025630 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 3 May 2012 16:51:43 -0400 From: Paul Moore Date: Thu, 03 May 2012 16:51:40 -0400 Message-ID: <2406839.noKVdbrKMP@sifl> In-Reply-To: <20120503082915.GF24747@redhat.com> References: <20120502193256.6508.86360.stgit@sifl> <20120503082915.GF24747@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [Qemu-devel] [PATCH v2] vnc: disable VNC password authentication (security type 2) when in FIPS mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: qemu-devel@nongnu.org On Thursday, May 03, 2012 09:29:15 AM Daniel P. Berrange wrote: > On Wed, May 02, 2012 at 03:32:56PM -0400, Paul Moore wrote: > > static void vnc_set_share_mode(VncState *vs, VncShareMode mode) > > { > > #ifdef _VNC_DEBUG > > > > @@ -2748,6 +2772,14 @@ void vnc_display_init(DisplayState *ds) > > > > dcl->idle = 1; > > vnc_display = vs; > > > > + vs->fips = fips_enabled(); > > + VNC_DEBUG("FIPS mode %s\n", (vs->fips ? "enabled" : "disabled")); > > +#ifndef _WIN32 > > + if (vs->fips) { > > + syslog(LOG_NOTICE, "Disabling VNC password auth due to FIPS > > mode\n"); + } > > +#endif /* _WIN32 */ > > I really think this should only be done if a password is actually set. > With the code as it is, then every single time you launch a VM you're > going to get this message in syslog, which makes it appear as if something > is trying to illegally use passwords in FIPS mode. I feel this will cause > admins/auditors to be worried about something being wrong, when in fact > everything is normal. Yep. I can see arguments for either location but I'll go ahead and move it in v3 which I will be posting shortly. -- paul moore security and virtualization @ redhat