xsm: dummy module - implement missing stub
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 15 Sep 2008 10:36:20 +0000 (11:36 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 15 Sep 2008 10:36:20 +0000 (11:36 +0100)
- This minor patch implements the missing stub function
security_label_to_details in the dummy module.  This stub function is
necessary to create domains with network interfaces for modules that
do not implement the security_label_to_details function.

Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
tools/python/xen/util/xsm/dummy/dummy.py

index b82e1b9ff5d1655de7f619c4aa45c95f02904992..795d637df7f9bfc500e5f59b547c8e7e1c3dabc4 100644 (file)
@@ -131,3 +131,6 @@ def dump_policy_file():
 
 def get_ssid(domain):
     err("No ssid has been assigned to any domain under xsm dummy module.")
+
+def security_label_to_details(res_label):
+    return ("","","")