Revision df716c98d203ab64cdf05f9c17fdae565b7daa1c authored by Eelco Dolstra on 23 June 2012, 04:28:35 UTC, committed by Eelco Dolstra on 23 June 2012, 04:28:35 UTC
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.
1 parent 2f3f413
File | Mode | Size |
---|---|---|
Makefile.am | -rw-r--r-- | 983 bytes |
build.cc | -rw-r--r-- | 89.2 KB |
derivations.cc | -rw-r--r-- | 7.3 KB |
derivations.hh | -rw-r--r-- | 2.0 KB |
gc.cc | -rw-r--r-- | 23.3 KB |
globals.cc | -rw-r--r-- | 4.5 KB |
globals.hh | -rw-r--r-- | 3.5 KB |
local-store.cc | -rw-r--r-- | 49.0 KB |
local-store.hh | -rw-r--r-- | 8.3 KB |
misc.cc | -rw-r--r-- | 4.2 KB |
misc.hh | -rw-r--r-- | 1.3 KB |
optimise-store.cc | -rw-r--r-- | 6.8 KB |
pathlocks.cc | -rw-r--r-- | 5.3 KB |
pathlocks.hh | -rw-r--r-- | 1005 bytes |
references.cc | -rw-r--r-- | 3.3 KB |
references.hh | -rw-r--r-- | 232 bytes |
remote-store.cc | -rw-r--r-- | 13.2 KB |
remote-store.hh | -rw-r--r-- | 2.1 KB |
schema.sql | -rw-r--r-- | 1.6 KB |
store-api.cc | -rw-r--r-- | 9.1 KB |
store-api.hh | -rw-r--r-- | 11.6 KB |
worker-protocol.hh | -rw-r--r-- | 1.7 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...