From: Ian Jackson Subject: Re: [RFC] xl: support configuration of encrypted VNC Date: Tue, 20 Dec 2011 18:25:27 +0000 Message-ID: <20208.54039.524708.324643@mariner.uk.xensource.com> References: <1323951936.20077.471.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1323951936.20077.471.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[Xen-devel] [RFC] xl: support configuration of encrypted VNC"): > Someone pointed out that it's not possible to configure encrypted vnc > via xl, while it is possible via xm. This is obviously quite nice to > have if you are logging in as root... > > The following is my initial attempt but TBH I'm not sure if this is > presenting the correct interface at either the libxl or xl level. Since > I don't actually use this stuff myself I'm finding it a bit hard to > judge how much flexibility is needed or even what the right names/terms > for things are. Opinions? What is the security implication of the path with the certificates ? Is it that only clients with that particular certificate can connect ? > + if (!xlu_cfg_get_string (config, "vnctls", &buf, 0)) { > + fprintf(stderr, "VNC: %s\n", buf); > + if (libxl_vnc_tlsmode_from_string(buf, &dm_info->vnctls)) { > + fprintf(stderr, "ERROR: invalid value \"%s\" for \"vnctls\"\n", > + buf); > + exit (1); > + } > + } else { > + fprintf(stderr, "!VNC: %s\n", buf); > + exit(1); > + } This is a bit odd. If you don't say "vnctls" in your config file, the config parser just exits ? Ian.