[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] xsm: return unlabeled instead of failing with ENOENT in get_page_sid



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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.