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

[Xen-devel] Re: [PATCH][ACM][UPDATE] python tools and support for resour

To: "Bryan D. Payne" <bdpayne@xxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH][ACM][UPDATE] python tools and support for resource labeling
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Thu, 29 Jun 2006 14:07:02 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, sailer@xxxxxxxxxx
Delivery-date: Thu, 29 Jun 2006 06:17:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <44A2F47A.7040205@xxxxxxxxxx>
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: <44A2F47A.7040205@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Wed, Jun 28, 2006 at 05:28:26PM -0400, Bryan D. Payne wrote:

> Same as previous patch, except that we no longer use xml marshaling.
> 
> Signed-off-by: Bryan D. Payne <bdpayne@xxxxxxxxxx>
> Signed-off-by: Reiner Sailer <sailer@xxxxxxxxxx>

This patch continues to be a problem:

> @@ -999,6 +1008,19 @@ def xm_block_attach(args):
>      if len(args) == 5:
>          vbd.append(['backend', args[4]])
>  
> +    # verify that policy permits attaching this resource
> +    try:
> +        dominfo = server.xend.domain(dom)
> +        domid = sxp.child_value(dominfo, 'domid')
> +        (tmp1, label, tmp2, tmp3) = security.get_ssid(domid)
> +        security.res_security_check(args[1], label)
> +    except security.ACMError, e:
> +        print e.value
> +        sys.exit(1)
> +    except:
> +        traceback.print_exc(limit=1)
> +        sys.exit(1)
> +
>      server.xend.domain.device_create(dom, vbd)

If there is no security policy in force, then get_ssid throws an ACMError.
This means that all xm-test's block-attach tests are currently failing.

Ewan.

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

<Prev in Thread] Current Thread [Next in Thread>