ia64/xen-unstable

changeset 18590:1f85f7b216b3

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

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Oct 08 10:03:47 2008 +0100 (2008-10-08)
parents d5bd0567b458
children ed398097c03e
files tools/python/xen/util/xsm/flask/flask.py
line diff
     1.1 --- a/tools/python/xen/util/xsm/flask/flask.py	Wed Oct 08 10:03:09 2008 +0100
     1.2 +++ b/tools/python/xen/util/xsm/flask/flask.py	Wed Oct 08 10:03:47 2008 +0100
     1.3 @@ -35,7 +35,10 @@ def calc_dom_ssidref_from_info(info):
     1.4      return ssidref
     1.5  
     1.6  def set_security_label(policy, label):
     1.7 -    return label
     1.8 +    if label:
     1.9 +        return label
    1.10 +    else:
    1.11 +        return ""
    1.12  
    1.13  def ssidref2security_label(ssidref):
    1.14      label = ssidref2label(ssidref)