Skip to contentSkip to conversation

Fix a problem in xend code when starting a guest with XSM/Flask enabled.

PATCH New Stefan Berger 1 participant 1 message Oct 7, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix a problem in xend code when starting a guest with XSM/Flask enabled.

This patch fixes a problem when starting a domain with XSM/Flask enabled.

tools/python/xen/util/xsm/flask/flask.py +4 -1
diff -r 782599274bf9 tools/python/xen/util/xsm/flask/flask.py
@@ -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)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel