Skip to contentSkip to conversation

xsm: return unlabeled instead of failing with ENOENT in get_page_sid

PATCH New Daniel De Graaf 1 participant 1 message Sep 22, 2010

lore
Share & tools
lore
#0 lore raw

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
diff -r 5393151a737b xen/xsm/flask/hooks.c
@@ -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