Skip to contentSkip to conversation

Fix after refactoring

PATCH New Stefan Berger 1 participant 1 message Oct 1, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix after refactoring

This is a fix after the refactoring done in CS 15938 in security.py .

tools/python/xen/util/xsm/acm/acm.py +1 -1
diff -r 5c7afb32df99 tools/python/xen/util/xsm/acm/acm.py
@@ -1309,7 +1309,7 @@ def parse_security_label(security_label)
         return security_label
 
 def set_security_label(policy, label):
-    if label != "" and policy != "":
+    if label and policy and label != "" and policy != "":
         return "%s:%s:%s" % (xsconstants.ACM_POLICY_ID, policy, label)
     else:
         return ""

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