diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2015-06-03 14:22:43 +0100 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2015-06-03 15:29:06 +0100 |
commit | a0749b5df7098212d261dc3da41e01a48336f717 (patch) | |
tree | 7741eae8318bd7a8f4a9102ffb6ca3bda43e06d8 | |
parent | 20972f306f6cd8add0e9c1a3aad50101ecefbe61 (diff) | |
download | import-a0749b5df7098212d261dc3da41e01a48336f717.tar.gz |
Allow import tool to run as non-root
Morph runs extensions in a separate mount namespace
by default, but constructing this namespace requires
root privileges. The import tool has no need for a
separate mount namespace, so this commit disables it.
Change-Id: I952885860100453e4a531589b6acca7e5dc31435
-rw-r--r-- | baserockimport/mainloop.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/baserockimport/mainloop.py b/baserockimport/mainloop.py index 3c84ec3..c31bd0e 100644 --- a/baserockimport/mainloop.py +++ b/baserockimport/mainloop.py @@ -78,7 +78,8 @@ def run_extension(filename, args): logging.debug("Running %s %s" % (extension_path, args)) cwd = '.' - returncode = ext.run(extension_path, args, cwd, os.environ) + returncode = ext.run(extension_path, args, cwd, os.environ, + separate_mount_namespace=False) if returncode == 0: ext_logger.info('succeeded') |