summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan/maw@codethink.co.uk>2013-08-13 16:44:40 +0000
committerJonathan Maw <jonathan/maw@codethink.co.uk>2013-08-13 16:44:40 +0000
commit49df5cb6e36de6a4f8a5a29da1ebebe0889be62b (patch)
treefa3de1de6ffb81b1236f78209819a2f94631f45f
parent2d11c3d82fb869197da5ffa12635e125a380e48f (diff)
downloaddefinitions-49df5cb6e36de6a4f8a5a29da1ebebe0889be62b.tar.gz
Disable network during builds
-rw-r--r--morphlib/stagingarea.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/morphlib/stagingarea.py b/morphlib/stagingarea.py
index 3d756df7..f4deb0f9 100644
--- a/morphlib/stagingarea.py
+++ b/morphlib/stagingarea.py
@@ -295,6 +295,7 @@ class StagingArea(object):
if d not in do_not_mount_dirs:
if os.path.isdir(os.path.join(self.dirname, d)):
real_argv += ['--mount-readonly', '/'+d]
+ real_argv += ['--unshare-net']
real_argv += [self.dirname]
real_argv += ['sh', '-c', 'cd "$1" && shift && exec "$@"', '--',