diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-06-09 12:30:31 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-06-09 12:30:31 +0100 |
commit | c30872027ca3f237b3cb4eca60b2681be62f076d (patch) | |
tree | f0aa264eb345693b8ac6311ec2e25d1ba18c4808 /sandboxlib/chroot.py | |
parent | 85af5bcbe4618b0417bfb60847873dae68c5ade2 (diff) | |
download | sandboxlib-c30872027ca3f237b3cb4eca60b2681be62f076d.tar.gz |
Note that chroot backend has been tested on OSX now.
Also, remove a comment that I think is superfluous. Hopefully it's
still clear that the chroot backend should work on any POSIX OS.
Diffstat (limited to 'sandboxlib/chroot.py')
-rw-r--r-- | sandboxlib/chroot.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sandboxlib/chroot.py b/sandboxlib/chroot.py index e224ec0..127bbab 100644 --- a/sandboxlib/chroot.py +++ b/sandboxlib/chroot.py @@ -18,8 +18,8 @@ This implements an API defined in sandboxlib/__init__.py. This backend should work on any POSIX-compliant operating system. It has been -tested on Linux only. The calling process must be able to use the chroot() -syscall, which is likely to require 'root' priviliges. +tested on Linux and Mac OS X. The calling process must be able to use the +chroot() syscall, which is likely to require 'root' priviliges. If any 'extra_mounts' are specified, there must be a working 'mount' binary in the host system. @@ -86,11 +86,6 @@ def process_mount_config(mounts, extra_mounts): def process_network_config(network): - # It'd be possible to implement network isolation on Linux using the - # clone() syscall. However, I prefer to have the 'chroot' backend behave - # the same on all platforms, and have separate Linux-specific backends to - # do Linux-specific stuff. - assert network == 'undefined', \ "'%s' is an unsupported value for 'network' in the 'chroot' backend. " \ "Network sharing cannot be be configured in this backend." % network |