mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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. From: Daniel De Graaf <dgdegra@tycho.nsa.gov> Signed-off-by: Keir Fraser <Keir.Fraser@eu.citrix.com>
This commit is contained in:
1 parent
2b989e000b
commit
f9b43436a8
1 file changed
+1
-4
@@ -340,10 +340,7 @@ static int get_page_sid(struct page_info *page, u32 *sid)
|
||||
default:
|
||||
/*Pages are implicitly labeled by domain ownership!*/
|
||||
dsec = d->ssid;
|
||||
if (dsec)
|
||||
*sid = dsec->sid;
|
||||
else
|
||||
rc = -ENOENT;
|
||||
*sid = dsec ? dsec->sid : SECINITSID_UNLABELED;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||