about summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-06-23T04·28-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-06-23T04·28-0400
commitdf716c98d203ab64cdf05f9c17fdae565b7daa1c (patch)
tree517c173c82cb5e65df3fd3ff4044ca0fadd04097 /release.nix
parent2f3f413e91620d2314be59870f4bd67292f7d2de (diff)
In chroot builds, use a private network namespace
On Linux it's possible to run a process in its own network namespace,
meaning that it gets its own set of network interfaces, disjunct from
the rest of the system.  We use this to completely remove network
access to chroot builds, except that they get a private loopback
interface.  This means that:

- Builders cannot connect to the outside network or to other processes
  on the same machine, except processes within the same build.

- Vice versa, other processes cannot connect to processes in a chroot
  build, and open ports/connections do not show up in "netstat".

- If two concurrent builders try to listen on the same port (e.g. as
  part of a test), they no longer conflict with each other.

This was inspired by the "PrivateNetwork" flag in systemd.
Diffstat (limited to 'release.nix')
0 files changed, 0 insertions, 0 deletions