Changeset 2179
- Timestamp:
- 05/22/08 14:45:44 (6 months ago)
- Files:
-
- trunk/framework-plugin/src/com/tresys/framework/compiler/Compiler.java (modified) (2 diffs)
- trunk/framework-plugin/src/com/tresys/framework/compiler/dictionary/Token.java (modified) (2 diffs)
- trunk/framework-plugin/src/com/tresys/framework/compiler/linkage/Token.java (modified) (2 diffs)
- trunk/framework-plugin/src/com/tresys/framework/compiler/linkage/flnkage/Token.java (modified) (1 diff)
- trunk/framework-plugin/src/com/tresys/framework/compiler/linkage/net/Endpoint.java (modified) (1 diff)
- trunk/framework-plugin/src/com/tresys/framework/compiler/linkage/net/NetworkAdder.java (modified) (3 diffs)
- trunk/framework-plugin/src/com/tresys/framework/compiler/linkage/net/NetworkConfig.java (modified) (9 diffs)
- trunk/framework-plugin/src/com/tresys/framework/compiler/linkage/net/Token.java (modified) (3 diffs)
- trunk/framework-plugin/src/com/tresys/framework/compiler/policy/Component.java (modified) (2 diffs)
- trunk/framework-plugin/src/com/tresys/framework/compiler/policy/Policy.java (modified) (7 diffs)
- trunk/framework-plugin/src/com/tresys/framework/compiler/policy/Token.java (modified) (1 diff)
- trunk/framework-plugin/src/com/tresys/framework/compiler/systemResources/NetworkInfo.java (modified) (1 diff)
- trunk/framework-plugin/src/com/tresys/framework/compiler/systemResources/Token.java (modified) (1 diff)
- trunk/framework-plugin/src/com/tresys/framework/plugin/builder/FrameworkNature.java (modified) (2 diffs)
- trunk/framework-plugin/src/com/tresys/framework/plugin/builder/SELinuxSystem.java (modified) (1 diff)
- trunk/framework-plugin/src/com/tresys/framework/plugin/editor/policy/graphic/model/AccessConnection.java (modified) (5 diffs)
- trunk/framework-plugin/src/com/tresys/framework/plugin/editor/policy/graphic/model/Connection.java (modified) (2 diffs)
- trunk/framework-plugin/src/com/tresys/framework/plugin/wizards/shape/NetworkResourceShapePropertyWizard.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/framework-plugin/src/com/tresys/framework/compiler/Compiler.java
r2143 r2179 547 547 } 548 548 549 policy = new Policy (dictionary, linkage); 549 int dot = polOutputFilename.lastIndexOf ('.'); 550 int slash = polOutputFilename.lastIndexOf ('/'); 551 String moduleName = polOutputFilename; 552 553 if (dot != -1) 554 moduleName = moduleName.substring (0, dot); 555 if (slash != -1) 556 moduleName = moduleName.substring (slash + 1); 557 558 policy = new Policy (moduleName, dictionary, linkage); 550 559 errorCount = 0; 551 560 /* for(String policyFilename : polSourceFilenames) */ … … 616 625 if (fcFilename != null) 617 626 fcFile = new File (fcFilename); 618 619 int dot = polOutputFilename.lastIndexOf ('.');620 int slash = polOutputFilename.lastIndexOf ('/');621 String moduleName = polOutputFilename;622 623 if (dot != -1)624 moduleName = moduleName.substring (0, dot);625 if (slash != -1)626 moduleName = moduleName.substring (slash + 1);627 627 628 628 if (dictionarySupportFile != null) trunk/framework-plugin/src/com/tresys/framework/compiler/dictionary/Token.java
r1878 r2179 29 29 public Token specialToken; 30 30 31 public Token(String image, int beginLine, int endLine, int beginColumn, 32 int endColumn, ErrorHandler errorHandler){31 public Token(String image, int beginLine, int endLine, int beginColumn, int endColumn, ErrorHandler errorHandler) 32 { 33 33 super(image, beginLine, endLine, beginColumn, endColumn, errorHandler); 34 34 } … … 39 39 } 40 40 41 p ublicToken() {}41 protected Token() {} 42 42 43 public static final Token newToken(int ofKind) { 44 switch(ofKind) { 43 public static final Token newToken(int ofKind) 44 { 45 switch(ofKind) 46 { 45 47 default: 46 48 return new Token(); trunk/framework-plugin/src/com/tresys/framework/compiler/linkage/Token.java
r1878 r2179 8 8 * 9 9 * DictionaryParser: Lexical analyzer and parser generator source 10 * Version: @version@ 10 * 11 * $Date$ 12 * $Rev$ 11 13 */ 12 14 … … 27 29 public Token specialToken; 28 30 29 public Token(String image, int beginLine, int endLine, int beginColumn, 30 int endColumn, ErrorHandler errorHandler){31 public Token(String image, int beginLine, int endLine, int beginColumn, int endColumn, ErrorHandler errorHandler) 32 { 31 33 super(image, beginLine, endLine, beginColumn, endColumn, errorHandler); 32 34 } 33 35 34 p ublicToken() {}36 protected Token() {} 35 37 36 public Token(String i_sSubName, ErrorHandler errorHandler) { 38 public Token(String i_sSubName, ErrorHandler errorHandler) 39 { 37 40 super(i_sSubName, errorHandler); 38 41 } 39 42 40 public static final Token newToken(int ofKind) { 41 switch(ofKind) { 43 public static final Token newToken(int ofKind) 44 { 45 switch(ofKind) 46 { 42 47 default: 43 48 return new Token(); trunk/framework-plugin/src/com/tresys/framework/compiler/linkage/flnkage/Token.java
r1878 r2179 27 27 public Token specialToken; 28 28 29 public Token(String image, int beginLine, int endLine, int beginColumn, 30 int endColumn, ErrorHandler errorHandler){29 public Token(String image, int beginLine, int endLine, int beginColumn, int endColumn, ErrorHandler errorHandler) 30 { 31 31 super(image, beginLine, endLine, beginColumn, endColumn, errorHandler); 32 32 } 33 33 34 p ublicToken() {}34 protected Token() {} 35 35 36 public Token(String i_sSubName, ErrorHandler errorHandler) { 36 public Token(String i_sSubName, ErrorHandler errorHandler) 37 { 37 38 super(i_sSubName, errorHandler); 38 39 } 39 40 40 public static final Token newToken(int ofKind) { 41 switch(ofKind) { 41 public static final Token newToken(int ofKind) 42 { 43 switch(ofKind) 44 { 42 45 default: 43 46 return new Token(); trunk/framework-plugin/src/com/tresys/framework/compiler/linkage/net/Endpoint.java
r2147 r2179 66 66 } 67 67 68 69 public NetSystem getSystem () 70 { 71 return m_system; 72 } 73 74 75 /* (non-Javadoc) 76 * @see com.tresys.framework.compiler.policy.Component#equals(java.lang.Object) 77 */ 78 public boolean equals (Object obj) 79 { 80 if (!super.equals (obj)) 81 return false; 82 83 if (!(obj instanceof Endpoint)) 84 return false; 85 86 Endpoint other = (Endpoint) obj; 87 if (!getSystem ().equals (other.getSystem ())) 88 return false; 89 90 if (!getNetworkInfo ().equals (other.getNetworkInfo ())) 91 return false; 92 93 return true; 94 } 95 96 68 97 /* (non-Javadoc) 69 98 * @see java.lang.Object#toString() trunk/framework-plugin/src/com/tresys/framework/compiler/linkage/net/NetworkAdder.java
r2169 r2179 14 14 import com.tresys.framework.compiler.dictionary.SysResourceState; 15 15 import com.tresys.framework.compiler.policy.Policy; 16 import com.tresys.framework.compiler.policy.NetworkResource; 16 17 import com.tresys.framework.compiler.policy.Resource; 17 import com.tresys.framework.compiler.policy.NetworkResource;18 18 import com.tresys.framework.compiler.policy.Token; 19 19 import com.tresys.framework.compiler.systemResources.LabeledNetworkResource; … … 37 37 public void Visit (NetResource i_net_resource) 38 38 { 39 Resource res = m_sysPolicy.GetResource (i_net_resource.getName ()); 39 String rdefName = (String) i_net_resource.get (NetResource.KEY_TYPE); 40 if (rdefName == null) 41 return; 40 42 41 if (res == null) 43 // we only care about ipsec network connections 44 Rdef rdef = m_sysPolicy.getDictionary ().GetRdef (rdefName); 45 if (rdef.GetSysResourceState (SystemResourceTypes.ipsec) == SysResourceState.No) 46 return; 47 48 NetworkResource netRes = (NetworkResource) m_sysPolicy.GetResource (i_net_resource.getName ()); 49 if (netRes == null) 42 50 { 43 Token token = new Token(i_net_resource.getName (), m_errorHandler); 44 NetworkResource netRes = new NetworkResource(token, i_net_resource, m_sysPolicy); 45 Rdef rdef = m_sysPolicy.getDictionary ().GetRdef ((String)i_net_resource.get (NetResource.KEY_TYPE)); 51 Token token = new Token (i_net_resource.getName (), m_errorHandler); 52 netRes = new NetworkResource(token, i_net_resource, m_sysPolicy); 46 53 netRes.Add (rdef, new Token (rdef.GetName(), m_errorHandler)); 47 54 48 if (rdef.GetSysResourceState (SystemResourceTypes.ipsec) != SysResourceState.No) 49 { 50 NetworkInfo netInfo = new NetworkInfo(null, null, null, null); 51 LabeledNetworkResource lNetRes = new LabeledNetworkResource(netInfo,rdef); 52 netRes.AddSystemResource (rdef, lNetRes); 53 } 55 NetworkInfo netInfo = new NetworkInfo (null, null, null, null); 56 LabeledNetworkResource lNetRes = new LabeledNetworkResource (netInfo, rdef); 57 netRes.AddSystemResource (rdef, lNetRes); 58 54 59 m_sysPolicy.Add (netRes); 60 } 61 62 if (netRes != null) 63 { 64 55 65 } 56 66 … … 59 69 public void Visit (NetConnection i_net_connection) 60 70 { 61 71 // i_net_connection. 62 72 } 63 73 trunk/framework-plugin/src/com/tresys/framework/compiler/linkage/net/NetworkConfig.java
r2175 r2179 16 16 import java.util.Iterator; 17 17 import java.util.Map; 18 import java.util.Random; 19 import java.util.Vector; 20 21 import com.tresys.framework.compiler.dictionary.Rdef; 22 import com.tresys.framework.compiler.policy.AccessNetwork; 23 import com.tresys.framework.compiler.policy.IDomain; 24 import com.tresys.framework.compiler.policy.NetworkResource; 25 import com.tresys.framework.compiler.systemResources.LabeledNetworkResource; 26 import com.tresys.framework.compiler.systemResources.NetworkInfo; 27 import com.tresys.framework.compiler.systemResources.SystemResource; 18 28 19 29 /** … … 23 33 public class NetworkConfig 24 34 { 35 /** 36 * full list of network resources that are defined 37 */ 25 38 private final Map m_netresources = new HashMap (); 39 40 /** 41 * full list of systems that are defined 42 */ 26 43 private final Map m_systems = new HashMap (); 27 private final Map m_connections = new HashMap (); 44 45 /** 46 * full list of full connections (source domain to target domain through ipsec net resource) 47 */ 48 private final Map /* < NetResource, Collection <NetConnection> > */ m_connections = new HashMap (); 49 50 /** 51 * list of accesses (half connections) used to generate connections as found 52 */ 53 private final Map /* < NetResource, Collection < Endpoint > > */ m_endpoints = new HashMap (); 28 54 29 55 public NetworkConfig () … … 39 65 m_systems.put (sName, i_item); 40 66 else if (i_item instanceof NetResource) 67 { 41 68 m_netresources.put (sName, i_item); 69 m_endpoints.put (i_item, new Vector ()); 70 m_connections.put (i_item, new Vector ()); 71 } 42 72 } 43 73 … … 60 90 public void RemoveNetResource (String i_sNetResourceName) 61 91 { 62 m_netresources.remove (i_sNetResourceName); 92 Object res = m_netresources.remove (i_sNetResourceName); 93 if (res != null) 94 { 95 m_endpoints.remove (res); 96 m_connections.remove (res); 97 } 63 98 } 64 99 … … 77 112 for (Iterator itr = m_connections.values ().iterator (); itr.hasNext ();) 78 113 { 79 i_visitor.Visit ((NetConnection) itr.next ()); 114 Collection connections = (Collection) itr.next (); 115 for (Iterator itr2 = connections.iterator (); itr2.hasNext (); ) 116 { 117 i_visitor.Visit ((NetConnection) itr2.next ()); 118 } 80 119 } 81 120 } … … 93 132 public Collection getNetworkItems () 94 133 { 95 Collection coll = m_systems.values ();134 Collection coll = new Vector (m_systems.values ()); 96 135 coll.addAll (m_netresources.values ()); 97 136 return coll; … … 103 142 throw new IllegalArgumentException (); 104 143 105 String sName = i_connection.toString (); 106 m_connections.put (sName, i_connection); 144 NetResource res = i_connection.getResource (); 145 Collection cons = (Collection) m_connections.get (res); 146 cons.add (i_connection); 107 147 } 108 148 … … 111 151 if (i_connection != null) 112 152 { 113 String sName = i_connection.toString (); 114 m_connections.remove (sName); 153 NetResource res = i_connection.getResource (); 154 Collection cons = (Collection) m_connections.get (res); 155 156 cons.remove (i_connection); 115 157 } 116 158 } … … 118 160 public Collection getConnections (NetResource i_res) 119 161 { 120 ArrayList list = new ArrayList (); 121 if (i_res == null) 122 return list; 123 124 for (Iterator itr = m_connections.values ().iterator (); itr.hasNext ();) 125 { 126 NetConnection connection = (NetConnection) itr.next (); 127 if (i_res.equals (connection.getResource ())) 128 list.add (connection); 129 } 130 131 return list; 132 } 162 return (Collection) m_connections.get (i_res); 163 } 164 165 public NetConnection getByESP (int i_nESP) 166 { 167 //TODO: this should be a simple visitor 168 for (Iterator itr = m_connections.values ().iterator (); itr.hasNext (); ) 169 { 170 Collection cons = (Collection) itr.next (); 171 for (Iterator itr2 = cons.iterator (); itr2.hasNext (); ) 172 { 173 NetConnection con = (NetConnection) itr2.next (); 174 if (con.getESPNumber () == i_nESP) 175 return con; 176 } 177 } 178 179 return null; 180 } 181 182 public void accessAdded (AccessNetwork i_access) 183 { 184 // m_accesses.add (i_access); 185 186 System.out.println ("Add network access " + i_access); 187 188 NetworkResource netResource = (NetworkResource) i_access.getResource (); 189 190 Rdef rdef = netResource.getRdef (); 191 SystemResource sysRes = netResource.getSystemResource (rdef); 192 if (!(sysRes instanceof LabeledNetworkResource)) 193 return; 194 195 IDomain dom = i_access.getDomain (); 196 String sSysName = dom.getPolicy ().getName (); 197 NetSystem sys = getSystem (sSysName); 198 199 NetResource netRes = getResource (netResource.getName ()); 200 201 LabeledNetworkResource labRes = (LabeledNetworkResource) sysRes; 202 203 if (sys == null) 204 return; 205 /* 206 Collection endpoints = (Collection) m_endpoints.get (netRes); 207 { 208 NetworkInfo netInfo = new NetworkInfo (labRes.getNetworkInfo ()); 209 Token domTok = new Token (dom.getToken ()); 210 Endpoint pt1 = new Endpoint (sys, domTok, netInfo); 211 212 endpoints.add (pt1); 213 } 214 215 // loop through all the endpoints updating all possible connections 216 { 217 Collection oldConnections = getConnections (netRes); 218 Collection newConnection = new Vector (); 219 220 for (Iterator itr = endpoints.iterator (); itr.hasNext (); ) 221 { 222 Endpoint ep1 = (Endpoint) itr.next (); 223 224 for (Iterator itr2 = endpoints.iterator (); itr2.hasNext (); ) 225 { 226 Endpoint ep2 = (Endpoint) itr2.next (); 227 228 // bypass equal endpoints 229 if (ep2.equals (ep1)) 230 continue; 231 232 // don't make SA entries for accesses on the same system 233 if (ep2.getSystem ().equals (ep1.getSystem ())) 234 continue; 235 236 // check for existing connection 237 boolean bFound = false; 238 for (Iterator itr3 = oldConnections.iterator (); itr3.hasNext (); ) 239 { 240 NetConnection con = (NetConnection) itr3.next (); 241 if (con.getSource ().equals (ep1) 242 && con.getTarget ().equals (ep2)) 243 { 244 newConnection.add (con); 245 itr3.remove (); 246 bFound = true; 247 } 248 } 249 250 // not found - make new 251 if (!bFound) 252 { 253 Random gen = new Random (); 254 int nESP = gen.nextInt (); 255 while (getByESP (nESP) != null) 256 nESP = gen.nextInt (); 257 258 NetConnection con = new NetConnection (ep1, ep2, netRes, nESP); 259 newConnection.add (con); 260 } 261 } 262 } 263 264 // update connection list 265 m_connections.put (netRes, newConnection); 266 267 } 268 */ 269 } 270 271 public void accessRemoved (AccessNetwork i_access) 272 { 273 System.out.println ("Remove network access " + i_access); 274 275 NetworkResource netResource = (NetworkResource) i_access.getResource (); 276 277 Rdef rdef = netResource.getRdef (); 278 SystemResource sysRes = netResource.getSystemResource (rdef); 279 if (!(sysRes instanceof LabeledNetworkResource)) 280 return; 281 282 IDomain dom = i_access.getDomain (); 283 String sSysName = dom.getPolicy ().getName (); 284 NetSystem sys = getSystem (sSysName); 285 286 NetResource netRes = getResource (netResource.getName ()); 287 288 // LabeledNetworkResource labRes = (LabeledNetworkResource) sysRes; 289 290 if (sys == null) 291 return; 292 /* 293 Collection endpoints = (Collection) m_endpoints.get (netRes); 294 if (endpoints == null) 295 return; 296 297 for (Iterator itr = endpoints.iterator (); itr.hasNext (); ) 298 { 299 Endpoint ep = (Endpoint) itr.next (); 300 301 if (!ep.getSystem ().equals (sys)) 302 continue; 303 304 if (!ep.getSubName ().equals (dom.getName ())) 305 continue; 306 307 itr.remove (); 308 309 // remove any connections using this endpoint 310 for (Iterator itr2 = getConnections (netRes).iterator (); itr2.hasNext (); ) 311 { 312 NetConnection con = (NetConnection) itr2.next (); 313 if (con.getSource ().equals (ep) 314 || con.getTarget ().equals (ep)) 315 { 316 itr2.remove (); 317 } 318 } 319 320 } 321 */ 322 } 323 133 324 } trunk/framework-plugin/src/com/tresys/framework/compiler/linkage/net/Token.java
r2113 r2179 9 9 * DictionaryParser: Lexical analyzer and parser generator source 10 10 * 11 * $Rev $12 * $Date $11 * $Rev:2113 $ 12 * $Date:2008-05-12 13:08:06 -0400 (Mon, 12 May 2008) $ 13 13 */ 14 14 … … 29 29 public Token specialToken; 30 30 31 public Token(String image, int beginLine, int endLine, int beginColumn, 32 int endColumn, ErrorHandler errorHandler){31 public Token(String image, int beginLine, int endLine, int beginColumn, int endColumn, ErrorHandler errorHandler) 32 { 33 33 super(image, beginLine, endLine, beginColumn, endColumn, errorHandler); 34 } 35 36 public Token (String i_sSubName, ErrorHandler i_errorHandler) 37 { 38 super (i_sSubName, i_errorHandler); 34 39 } 35 40 … … 39 44 } 40 45 41 p ublicToken() {}46 protected Token() {} 42 47 43 public static final Token newToken(int ofKind) { 44 switch(ofKind) { 48 public static final Token newToken(int ofKind) 49 { 50 switch(ofKind) 51 { 45 52 default: 46 53 return new Token(); trunk/framework-plugin/src/com/tresys/framework/compiler/policy/Component.java
r2113 r2179 129 129 { 130 130 // if we have the same reference 131 if (obj == this)131 if (obj == this) 132 132 return true; 133 133 … … 283 283 { 284 284 m_subName = i_sSubName; 285 m_token.image = m_subName; 285 286 } 286 287 trunk/framework-plugin/src/com/tresys/framework/compiler/policy/Policy.java
r2143 r2179 57 57 private final Vector /*<String>*/ comments; 58 58 59 private final Linkage linkage;60 61 private Dictionary dictionary;59 private final Linkage m_linkage; 60 61 private Dictionary m_dictionary; 62 62 63 63 private Map allInterfaces; … … 67 67 private final Map /*<String, Conditional>*/frameworkBooleans; 68 68 private String [] m_allBooleans; 69 private final String m_sName; 69 70 70 71 /** … … 73 74 * @param _linkage The linkage to base policy 74 75 */ 75 public Policy(Dictionary dictionary, Linkage linkage) 76 { 77 this.dictionary = dictionary; 78 this.linkage = linkage; 76 public Policy(String i_sName, Dictionary i_dictionary, Linkage i_linkage) 77 { 78 m_dictionary = i_dictionary; 79 m_linkage = i_linkage; 80 m_sName = i_sName; 79 81 80 82 // initialize the policy contents … … 135 137 try 136 138 { 137 PolicyParser parser = new PolicyParser(this, i_netConfig, dictionary);139 PolicyParser parser = new PolicyParser(this, i_netConfig, m_dictionary); 138 140 139 141 File polFile = new File(polFilename); … … 161 163 try 162 164 { 163 PolicyParser parser = new PolicyParser(this, i_netConfig, dictionary);165 PolicyParser parser = new PolicyParser(this, i_netConfig, m_dictionary); 164 166 165 167 parser.Parse(polReader, handler); … … 533 535 public Dictionary getDictionary() 534 536 { 535 return dictionary;537 return m_dictionary; 536 538 } 537 539 … … 785 787 public Linkage getLinkage() 786 788 { 787 if( linkage == null)789 if(m_linkage == null) 788 790 { 789 791 System.out.println("Policy.getLinkage returns null - framework/compiler/policy/Policy.java"); 790 792 } 791 return linkage; 792 } 793 793 return m_linkage; 794 } 795 796 public String getName () 797 { 798 return m_sName; 799 } 800 794 801 public boolean Remove(Component i_component) 795 802 { trunk/framework-plugin/src/com/tresys/framework/compiler/policy/Token.java
r1878 r2179 26 26 public Token specialToken; 27 27 28 public Token(String image, int beginLine, int endLine, int beginColumn, 29 int endColumn, ErrorHandler errorHandler){28 public Token(String image, int beginLine, int endLine, int beginColumn, int endColumn, ErrorHandler errorHandler) 29 { 30 30 super(image, beginLine, endLine, beginColumn, endColumn, errorHandler); 31 31 } 32 32 33 p ublicToken() {}33 protected Token() {} 34 34 35 public Token(String i_sSubName, ErrorHandler errorHandler) { 35 public Token(String i_sSubName, ErrorHandler errorHandler) 36 { 36 37 super(i_sSubName, errorHandler); 37 38 } 38 39 39 public static final Token newToken(int ofKind) { 40 switch(ofKind) { 40 public static final Token newToken(int ofKind) 41 { 42 switch(ofKind) 43 { 41 44 default: 42 45 return new Token(); trunk/framework-plugin/src/com/tresys/framework/compiler/systemResources/NetworkInfo.java
r2135 r2179 31 31 m_sMask = i_sMask; 32 32 m_nPorts = i_aPorts; 33 } 34 35 public NetworkInfo (NetworkInfo i_copyMe) 36 { 37 m_sDevice = i_copyMe.m_sDevice; 38 m_sIPAddr = i_copyMe.m_sIPAddr; 39 m_sMask = i_copyMe.m_sMask; 40 41 if (i_copyMe.m_nPorts != null) 42 { 43 m_nPorts = new int [i_copyMe.m_nPorts.length]; 44 System.arraycopy (i_copyMe.m_nPorts, 0, m_nPorts, 0, m_nPorts.length); 45 } 33 46 } 34 47 trunk/framework-plugin/src/com/tresys/framework/compiler/systemResources/Token.java
r1878 r2179 25 25 public Token specialToken; 26 26 27 public Token(String image, int beginLine, int endLine, int beginColumn, 28 int endColumn, ErrorHandler errorHandler){27 public Token(String image, int beginLine, int endLine, int beginColumn, int endColumn, ErrorHandler errorHandler) 28 { 29 29 super(image, beginLine, endLine, beginColumn, endColumn, errorHandler); 30 30 } 31 31 32 p ublicToken() {}32 protected Token() {} 33 33 34 public static final Token newToken(int ofKind) { 35 switch(ofKind) { 34 public static final Token newToken(int ofKind) 35 { 36 switch(ofKind) 37 { 36 38 default: 37 39 return new Token(); trunk/framework-plugin/src/com/tresys/framework/plugin/builder/FrameworkNature.java
r2174 r2179 341 341 m_networkConfiguration = new NetworkConfig (); 342 342 IFile fnet = getFNetFile (); 343 344 FrameworkNature.deleteMarkers (fnet); 343 345 //InputStream fnetStream = fnet.getContents (true); 344 346 if( fnet.exists () ) … … 624 626 systems.add(i_system); 625 627 // add the system to netconfing 626 Token tok = new Token(); 627 tok.image = i_system.getName (); 628 Token tok = new Token(i_system.getName (), i_system.getFPOLErrorHandler ()); 628 629 NetSystem sys = new NetSystem(tok); 629 630 getNetworkConfiguration ().Add (sys); trunk/framework-plugin/src/com/tresys/framework/plugin/builder/SELinuxSystem.java
r2165 r2179 203 203 if (DEBUG) 204 204 System.out.println("SELinuxSystem.
