[Buildd-tools-devel] Bug#488225: Bug#488225: Please support CLONE_NEWNS

Roger Leigh rleigh at whinlatter.ukfsn.org
Sun Jun 29 13:37:30 UTC 2008


Max Kellermann <max at duempel.org> writes:

> With CLONE_NEWNS (a clone()/unshare() option), schroot could make all
> mounts local, so the main host does not see them.  The kernel would
> automatically take care of all the cleanup involved in unmounting.  It
> could also use pivot_root() instead of chroot().

This does sound interesting.  If we can integrate this into the
existing setup script usage, that would be great.  However, the setup
scripts do need to have access to the host filesystem, which might
prevent CLONE_NEWNS from working nicely.  However, pivot_root might
well be an answer to that; we would just need to umount the old rootfs
after the setup scripts run.

If you had any suggestions about the best way to implement this, I
would be happy to hear them.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your maily.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20080629/b1489a27/attachment.pgp 


More information about the Buildd-tools-devel mailing list