From: Stefan Berger Subject: [PATCH] [Xend] Fix after refactoring Date: Mon, 01 Oct 2007 16:34:00 -0400 Message-ID: <1191270840.19499.1.camel@gsal-3.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-jUGQOk7otl8ieSNJDrYF" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org --=-jUGQOk7otl8ieSNJDrYF Content-Type: text/plain Content-Transfer-Encoding: 7bit This is a fix after the refactoring done in CS 15938 in security.py . Signed-off-by: Stefan Berger --=-jUGQOk7otl8ieSNJDrYF Content-Disposition: attachment; filename=set_security_label_fix.diff Content-Type: text/x-patch; name=set_security_label_fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 "" --=-jUGQOk7otl8ieSNJDrYF Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-jUGQOk7otl8ieSNJDrYF--