diff -r 5c7afb32df99 tools/python/xen/util/xsm/acm/acm.py --- a/tools/python/xen/util/xsm/acm/acm.py Mon Oct 01 06:39:00 2007 +0100 +++ b/tools/python/xen/util/xsm/acm/acm.py Mon Oct 01 16:13:52 2007 -0400 @@ -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 ""