From: Wei Liu Subject: Re: [OSSTEST PATCH v2 11/12] ts-debian-install: add in seclabel if XSM is enabled Date: Fri, 10 Oct 2014 18:11:05 +0100 Message-ID: <20141010171105.GF12970@zion.uk.xensource.com> References: <1411592677-2632-1-git-send-email-wei.liu2@citrix.com> <1411592677-2632-12-git-send-email-wei.liu2@citrix.com> <21560.757.424255.492365@mariner.uk.xensource.com> <20141010162907.GD12970@zion.uk.xensource.com> <21560.3108.262893.925977@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <21560.3108.262893.925977@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: dgdegra@tycho.nsa.gov, Wei Liu , ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, Oct 10, 2014 at 05:41:08PM +0100, Ian Jackson wrote: > Wei Liu writes ("Re: [OSSTEST PATCH v2 11/12] ts-debian-install: add in seclabel if XSM is enabled"): > > On Fri, Oct 10, 2014 at 05:01:57PM +0100, Ian Jackson wrote: > > > Surely it is a bug that this is necessary ? xl shuld do the right > > > thing by default. > > > > Well, xl is doing the right thing. Xen denies starting a guest without a > > seclabel. I think this is policy related, so it shouldn't be classified > > as a bug. > > You haven't asked xl to `start a guest without a seclabel'. > > You have asked xl to `start a guest'. > > xl should do whatever is necessary to implement your wishes (assuming > your wishes are reasonable, of course). I agree. And it's reasonable for hypervisor to reject this request. I think this is policy related. > If guests have to have > seclabels, xl should arrange to give them seclabels. If you don't > specify the seclabel, xl should figure out what seclabel to give them. > I don't see it this way as there's no documentation on what the "default seclabel" is. I think this is one is for Daniel. Wei. > And most of this ought probably to be in libxl, probably, rather than > xl. > > Ian.