|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] xsm: return unlabeled instead of failing with ENOENT
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
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] xsm: return unlabeled instead of failing with ENOENT in get_page_sid,
Daniel De Graaf <=
|
|
|
|
|