Author: eelco
Date: 2010-06-18 13:21:01 +0000 (Fri, 18 Jun 2010)
New Revision: 22325

You can view the changes in this commit at:
   https://svn.nixos.org/viewvc/nix?rev=22325&view=rev

Modified:
   nixos/branches/boot-order/modules/testing/test-instrumentation.nix

Log:
* Prevent tests from accessing the host's network accidentally.  For
  instance, `nixos-rebuild' in the installer test does a `nix-pull'
  from nixos.org.


Changes:

Modified: nixos/branches/boot-order/modules/testing/test-instrumentation.nix
===================================================================
--- nixos/branches/boot-order/modules/testing/test-instrumentation.nix  
2010-06-18 11:49:57 UTC (rev 22324)
+++ nixos/branches/boot-order/modules/testing/test-instrumentation.nix  
2010-06-18 13:21:01 UTC (rev 22325)
@@ -80,6 +80,10 @@
     # serial port).
     services.syslogd.extraConfig = "*.*,kern.none /dev/ttyS0";
 
+    # Prevent tests from accessing the Internet.
+    networking.defaultGateway = mkOverride 50 {} "";
+    networking.nameservers = mkOverride 50 {} [ ];
+
   };
 
 }

_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to