From: Daniel De Graaf Subject: [PATCH] xsm: return unlabeled instead of failing with ENOENT in get_page_sid Date: Wed, 22 Sep 2010 12:56:15 -0400 Message-ID: <4C9A352F.8040402@tycho.nsa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Keir Fraser Cc: xen-devel List-Id: xen-devel@lists.xenproject.org It is better to return an unlabeled SID in the case where dsec is NULL instead of bailing out with an error. diff -r 5393151a737b xen/xsm/flask/hooks.c --- a/xen/xsm/flask/hooks.c Tue Sep 14 18:26:10 2010 +0100 +++ b/xen/xsm/flask/hooks.c Wed Sep 22 12:49:54 2010 -0400 @@ -343,7 +343,7 @@ if (dsec) *sid = dsec->sid; else - rc = -ENOENT; + *sid = SECINITSID_UNLABELED; break; } -- Daniel De Graaf National Security Agency