diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-10-08 10:03:47 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-10-08 10:03:47 +0100 |
commit | 8c755b0a9883d73533a033750c60b86e1e96b66a (patch) | |
tree | 81663e859a6a37afb5a17dc055efdf46c9ba7231 /tools | |
parent | 913481379c3086ab99b5eea089bd12c1095198bf (diff) | |
download | xen-8c755b0a9883d73533a033750c60b86e1e96b66a.tar.gz xen-8c755b0a9883d73533a033750c60b86e1e96b66a.tar.bz2 xen-8c755b0a9883d73533a033750c60b86e1e96b66a.zip |
flask: Fix a problem in xend code when starting a guest with XSM/Flask enabled.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/xen/util/xsm/flask/flask.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/python/xen/util/xsm/flask/flask.py b/tools/python/xen/util/xsm/flask/flask.py index fc168f8fde..04dc3913c4 100644 --- a/tools/python/xen/util/xsm/flask/flask.py +++ b/tools/python/xen/util/xsm/flask/flask.py @@ -35,7 +35,10 @@ def calc_dom_ssidref_from_info(info): return ssidref def set_security_label(policy, label): - return label + if label: + return label + else: + return "" def ssidref2security_label(ssidref): label = ssidref2label(ssidref) |