xsm: return unlabeled instead of failing with ENOENT in get_page_sid
PATCH 1/1 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.
xen/xsm/flask/hooks.c Wed Sep 22 12:49:54 2010 -0400 renamed from xen/xsm/flask/hooks.c Tue Sep 14 18:26:10 2010 +0100 +1 -1
@@ -343,7 +343,7 @@ if (dsec) *sid = dsec->sid; else - rc = -ENOENT; + *sid = SECINITSID_UNLABELED; break; }
Signature · 2 lines
Daniel De Graaf National Security Agency