From: "George S. Coker, II" Subject: Re: [XSM][Patch] Minor XSM tools patch to dummy module - implement missing stub Date: Mon, 06 Oct 2008 15:36:09 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1846181445==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefan Berger Cc: xen-devel List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============1846181445== Content-type: multipart/alternative; boundary="B_3306152169_922441" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3306152169_922441 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Although XSM/Flask does not yet support labeling of VIFs, It should work with an attached VIF. I think we have not been very careful in the handling of labels on VIFs, and your patch looks like it addresses that issue. The default policy will allow both cases. Yes, your access_control setting is correct. On 10/6/08 12:21 PM, "Stefan Berger" wrote: > > George, > > is XSM/Flask known to work with a domU with an attached VIF? I find that > this patch here seems necessary, but want to confirm... > > diff -r 782599274bf9 tools/python/xen/util/xsm/flask/flask.py > --- a/tools/python/xen/util/xsm/flask/flask.py Tue Sep 30 > 10:14:54 2008 +0100 > +++ b/tools/python/xen/util/xsm/flask/flask.py Mon Oct 06 > 12:10:31 2008 -0400 > @@ -35,7 +35,10 @@ > return ssidref > > def set_security_label(policy, label): > - return label > + if label: > + return label > + else: > + return "" > > def ssidref2security_label(ssidref): > label = ssidref2label(ssidref) > > Is the default policy you have provided allowing a DomU in the cases with a > VIF or without a VIF to start? > > Also, is the following line from the VM configuration file correct to start a > VM while the default policy is enforced? > > access_control=['policy=,label=system_u:object_r:domU_t'] > > Thanks. > Stefan > > > > xen-devel-bounces@lists.xensource.com wrote on 09/12/2008 04:48:58 PM: > >> > "George S. Coker, II" >> > Sent by: xen-devel-bounces@lists.xensource.com >> > >> > 09/12/2008 04:48 PM >> > >> > To >> > >> > xen-devel >> > >> > cc >> > >> > Subject >> > >> > [Xen-devel][XSM][Patch] Minor XSM tools patch to dummy module - >> > implement missing stub >> > >> > >> > - This minor patch implements the missing stub function >> > security_label_to_details in the dummy module. This stub function is >> > necessary to create domains with network interfaces for modules that do not >> > implement the security_label_to_details function. >> > >> > Signed-off-by: George Coker >> > >> > [attachment "xsm-tools-dummy-update-091208.diff" deleted by Stefan >> > Berger/Watson/IBM] _______________________________________________ >> > Xen-devel mailing list >> > Xen-devel@lists.xensource.com >> > http://lists.xensource.com/xen-devel > -- George S. Coker, II --B_3306152169_922441 Content-type: text/html; charset="US-ASCII" Content-transfer-encoding: quoted-printable Re: [Xen-devel][XSM][Patch] Minor XSM tools patch to dummy module - = implement missing stub
Although XSM/Flask does not yet support labeling of VIFs, It should work wi= th an attached VIF.  I think we have not been very careful in the handl= ing of labels on VIFs, and your patch looks like it addresses that issue. &n= bsp;The default policy will allow both cases.

Yes, your access_control setting is correct.

On 10/6/08 12:21 PM, "Stefan Berger" <stefanb@us.ibm.com> wrote:

<= SPAN STYLE=3D'font-size:11pt'>
George,

  is XSM/Flask known to work with a domU with an attached VIF? I = find that this patch here seems necessary, but want to confirm...

diff -r 782599274bf9 tools/python/xen/util/xsm/flask/flask.py --- a/tools/python/xen/util/xsm/flask/flask.py     &nbs= p;          Tue Sep 30 10:= 14:54 2008 +0100
+++ b/tools/python/xen/util/xsm/flask/flask.py     &nbs= p;          Mon Oct 06 12:= 10:31 2008 -0400
@@ -35,7 +35,10 @@
     return ssidref
 
 def set_security_label(policy, label):
-    return label
+    if label:
+        return label
+    else:
+        return ""
 
 def ssidref2security_label(ssidref):
     label =3D ssidref2label(ssidref)

Is the default policy you have provided allowing a DomU in the cases with a= VIF or without a VIF to start?

Also, is the following line from the VM configuration file correct to start= a VM while the default policy is enforced?

access_control=3D['policy=3D,label=3Dsystem_u:object_r:domU_t']

Thanks.
   Stefan



xen-devel-bounces@lists.xensource.com wrote on 0= 9/12/2008 04:48:58 PM:

> "George S. Coker, II" <g= scoker@alpha.ncsc.mil>
> Sent by: xen-devel-bou= nces@lists.xensource.com
>
> 09/12/2008 04:48 PM

>
> To

>
> xen-devel <xen-devel@lists.= xensource.com>
=
>
> cc

>
> Subject

>
> [Xen-devel][XSM][Patch] Minor XSM tools patch to dummy module -
> implement missing stub

>
>
> - This minor patch implements the missing stub function
> security_label_to_details in the dummy module.  This stub functio= n is
> necessary to create domains with network interfaces for modules that d= o not
> implement the security_label_to_details function.
>
> Signed-off-by: George Coker <gscok= er@alpha.ncsc.mil>
>
> [attachment "xsm-tools-dummy-update-091208.diff" deleted by = Stefan
> Berger/Watson/IBM] _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com<= /a>
>
http://lists.xensource.= com/xen-devel
<= ;http://lists.xensource.com/x= en-devel>


--
George S. Coker, II <gscoker@alpha.ncsc= .mil>
--B_3306152169_922441-- --===============1846181445== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1846181445==--