WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] This patch adapts the Java Policy Processor to the defau

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] This patch adapts the Java Policy Processor to the default ssid change of
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Mon, 27 Jun 2005 17:22:33 +0000
Cc: james@xxxxxxxxxxxxx
Delivery-date: Mon, 27 Jun 2005 18:01:40 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1759, 2005/06/27 18:22:33+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        This patch adapts the Java Policy Processor to the default ssid change 
of
        0xfffffff... to 0.
        
        Signed-off by Ray Valdez <rvaldez@xxxxxxxxxx>



 XmlToBin.java          |   23 +++++++++++++++++------
 XmlToBinInterface.java |    4 ++--
 2 files changed, 19 insertions(+), 8 deletions(-)


diff -Nru a/tools/misc/policyprocessor/XmlToBin.java 
b/tools/misc/policyprocessor/XmlToBin.java
--- a/tools/misc/policyprocessor/XmlToBin.java  2005-06-27 14:02:51 -04:00
+++ b/tools/misc/policyprocessor/XmlToBin.java  2005-06-27 14:02:51 -04:00
@@ -1,7 +1,7 @@
 /**
  * (C) Copyright IBM Corp. 2005
  *
- * $Id: XmlToBin.java,v 1.2 2005/06/17 20:00:04 rvaldez Exp $
+ * $Id: XmlToBin.java,v 1.3 2005/06/20 21:07:37 rvaldez Exp $
  *
  * Author: Ray Valdez
  *
@@ -1088,7 +1088,18 @@
   /* Get VM security information */
   elementList = root.getElementsByTagName ("VM");
   printDebug ("\n pDT:: partition length of NodeList:" + 
elementList.getLength());
+  /* Add default Ssid to Ste and Chw bags */                   
+  SecurityLabel defEntry = new SecurityLabel();
 
+  defEntry.chwTypes = new Vector();
+  defEntry.steTypes = new Vector();
+  defEntry.chwIDs = new Vector();
+  defEntry.ids = new Vector();
+
+  defEntry.steSsidPosition =0;
+  defEntry.chwSsidPosition =0;
+  bagOfChwSsids.add(defEntry);
+  bagOfSsids.add(defEntry);
 
   for (int x = 0; x < elementList.getLength(); x++)
   {
@@ -1326,11 +1337,11 @@
          /* Get vid */
          NodeList elist = e1.getElementsByTagName ("vid");
          String idStr = elist.item(0).getFirstChild().getNodeValue();  
-         printDebug ("pDTVS:: vid:" + idStr);
+         printDebug (" pDTVS:: vid:" + idStr);
 
          /* Get TE */
          elist = e1.getElementsByTagName ("TE");
-          printDebug ("pDTVS:: Total ste types: " + elist.getLength());
+          printDebug (" pDTVS:: Total ste types: " + elist.getLength());
 
          Vector colorTypes = new Vector();
          for (int j = 0; j < elist.getLength(); j++)
@@ -1396,11 +1407,11 @@
          item.bus = elist.item(0).getFirstChild().getNodeValue();  
          elist = e1.getElementsByTagName ("slot");
          item.slot = elist.item(0).getFirstChild().getNodeValue();  
-         printDebug ("pDT:: bus and slot:" + item.bus + " "+ item.slot);
+         printDebug (" pDT:: bus and slot:" + item.bus + " "+ item.slot);
 
          /* Get TE */
          elist = e1.getElementsByTagName ("TE");
-          printDebug ("pDT:: Total ste types: " + elist.getLength());
+          printDebug (" pDT:: Total ste types: " + elist.getLength());
 
          Vector colorTypes = new Vector();
          for (int j = 0; j < elist.getLength(); j++)
@@ -1409,7 +1420,7 @@
                Node childNode = knode.getFirstChild();     
                String value = childNode.getNodeValue();
 
-               printDebug ("pDT:: My color is: " + value);
+               printDebug (" pDT:: My color is: " + value);
                if (!bagOfTypes.contains(value))
                {
                  throw new IOException("pDT:: bus: " + item.bus + " slot: "+ 
item.slot + " has unknown type : "+ value);
diff -Nru a/tools/misc/policyprocessor/XmlToBinInterface.java 
b/tools/misc/policyprocessor/XmlToBinInterface.java
--- a/tools/misc/policyprocessor/XmlToBinInterface.java 2005-06-27 14:02:51 
-04:00
+++ b/tools/misc/policyprocessor/XmlToBinInterface.java 2005-06-27 14:02:51 
-04:00
@@ -1,7 +1,7 @@
 /**
  * (C) Copyright IBM Corp. 2005
  *
- * $Id: XmlToBinInterface.java,v 1.2 2005/06/17 20:00:04 rvaldez Exp $
+ * $Id: XmlToBinInterface.java,v 1.3 2005/06/20 21:07:37 rvaldez Exp $
  *
  * Author: Ray Valdez
  *
@@ -123,7 +123,7 @@
   final short binaryBufferHeaderSz = (3 * u32Size + 4* u16Size);
 
   /* copied directlty from policy_ops.h */
-  final int POLICY_INTERFACE_VERSION = 0xAAAA0000;
+  final int POLICY_INTERFACE_VERSION = 0xAAAA0002;
 
   /* copied directly from acm.h */
   final int ACM_MAGIC  =  0x0001debc;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] This patch adapts the Java Policy Processor to the default ssid change of, BitKeeper Bot <=