ia64/xen-unstable

changeset 16033:74e385194be4

xend: Fix refactoring done in CS 15938 in security.py.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author Keir Fraser <keir@xensource.com>
date Tue Oct 02 09:27:22 2007 +0100 (2007-10-02)
parents 9a39dac6660a
children 1a04c799e20e
files tools/python/xen/util/xsm/acm/acm.py
line diff
     1.1 --- a/tools/python/xen/util/xsm/acm/acm.py	Tue Oct 02 09:26:18 2007 +0100
     1.2 +++ b/tools/python/xen/util/xsm/acm/acm.py	Tue Oct 02 09:27:22 2007 +0100
     1.3 @@ -1309,7 +1309,7 @@ def parse_security_label(security_label)
     1.4          return security_label
     1.5  
     1.6  def set_security_label(policy, label):
     1.7 -    if label != "" and policy != "":
     1.8 +    if label and policy and label != "" and policy != "":
     1.9          return "%s:%s:%s" % (xsconstants.ACM_POLICY_ID, policy, label)
    1.10      else:
    1.11          return ""