WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH][ACM] python tools and support for resource label

To: "Bryan D. Payne" <bdpayne@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH][ACM] python tools and support for resource labeling
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Wed, 28 Jun 2006 17:38:28 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, sailer@xxxxxxxxxx
Delivery-date: Wed, 28 Jun 2006 09:38:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060628150559.GB27633@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <44A05C37.1000407@xxxxxxxxxx> <20060628150559.GB27633@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Wed, Jun 28, 2006 at 04:05:59PM +0100, Ewan Mellor wrote:

> On Mon, Jun 26, 2006 at 06:14:15PM -0400, Bryan D. Payne wrote:
> 
> > This patch adds new xm subcommands to support working with resource 
> > labels.  The new subcommands are 'xm resources', 'xm rmlabel', 'xm 
> > getlabel' and 'xm dry-run'.  In addition, the 'xm addlabel' subcommand 
> > now uses an updated syntax to support labeling both domains and 
> > resources.  See the xm man page for details on each subcommand.
> > 
> > Beyond the new subcommands, this patch allows users to immediately see 
> > when security checks will fail by pushing some basic security checking 
> > into the beginning of 'xm create' and 'xm block-attach'.  ACM security 
> > attributes for block devices are added to XenStore in order to support 
> > the final security enforcement, which will be performed in the kernel 
> > and included in a separate patch.
> > 
> > Signed-off-by: Bryan D. Payne <bdpayne@xxxxxxxxxx>
> > Signed-off-by: Reiner Sailer <sailer@xxxxxxxxxx>
> 
> Looks good!  I've applied that, thanks.

It seems I spoke too soon!  The code uses xml.marshal.generic to parse the
resource label file, but that module isn't in the base Python distribution --
it's a separate library.

Could you come up with an alternative scheme here?  I'd _really_ like to avoid
introducing a new dependency.  I've commented that code out for now.

Cheers,

Ewan.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel