[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] flask: Fix a problem in xend code when starting a guest with XSM/Flask enabled.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1223456627 -3600
# Node ID 1f85f7b216b34bfda4911b6a46548478f0e5d682
# Parent  d5bd0567b4587ed7a701caaa10646f26b7a42b64
flask: Fix a problem in xend code when starting a guest with XSM/Flask enabled.

Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>
---
 tools/python/xen/util/xsm/flask/flask.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r d5bd0567b458 -r 1f85f7b216b3 tools/python/xen/util/xsm/flask/flask.py
--- a/tools/python/xen/util/xsm/flask/flask.py  Wed Oct 08 10:03:09 2008 +0100
+++ b/tools/python/xen/util/xsm/flask/flask.py  Wed Oct 08 10:03:47 2008 +0100
@@ -35,7 +35,10 @@ def calc_dom_ssidref_from_info(info):
     return ssidref
 
 def set_security_label(policy, label):
-    return label
+    if label:
+        return label
+    else:
+        return ""
 
 def ssidref2security_label(ssidref):
     label = ssidref2label(ssidref)

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.