Minor adjustments for Tomoyo for the fourth benchmark
[iot2.git] / iotjava / iotruntime / master / ProcessJailConfig.java
index 4781fbd38753c2462e7807bbf251fd386210c3b4..757313a486ca70eb7891ae26de5a35bbdc1ff161 100644 (file)
@@ -344,10 +344,14 @@ public final class ProcessJailConfig {
         * @param   strAddress          String device IP address
         * @return  void
         */
-       public void configureProcessJailInetAddressPolicies(String strConfigHost, String strAddress) {
+       public void configureProcessJailInetAddressPolicies(String strConfigHost, String strRouterAddress, String strAddress) {
 
                PrintWriter pwConfig = getPrintWriter(strConfigHost);
                //System.out.println("\n\nDEBUG: Writing the config host address setup!!!\n\n");
+               pwConfig.println("file read /etc/resolv.conf");
+               pwConfig.println("file read /etc/hosts");
+               pwConfig.println("file read /etc/host.conf");
+               pwConfig.println("network inet dgram send " + strRouterAddress + " " + String.valueOf(53));     // TCP/UDP access through router
                pwConfig.println("network inet stream connect ::ffff:" + strAddress + " " + String.valueOf(80));        // HTTP access for this address
        }