diff options
author | Jonathan Maw <jonathan/maw@codethink.co.uk> | 2013-08-13 16:44:40 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan/maw@codethink.co.uk> | 2013-08-13 16:44:40 +0000 |
commit | 49df5cb6e36de6a4f8a5a29da1ebebe0889be62b (patch) | |
tree | fa3de1de6ffb81b1236f78209819a2f94631f45f /morphlib/stagingarea.py | |
parent | 2d11c3d82fb869197da5ffa12635e125a380e48f (diff) | |
download | morph-49df5cb6e36de6a4f8a5a29da1ebebe0889be62b.tar.gz |
Disable network during builds
Diffstat (limited to 'morphlib/stagingarea.py')
-rw-r--r-- | morphlib/stagingarea.py | 1 |
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 "$@"', '--', |