Debian Bug report logs -
#488225
Please support CLONE_NEWNS
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#488225; Package schroot.
(full text, mbox, link).
Acknowledgement sent to Max Kellermann <max@duempel.org>:
New Bug report received and forwarded. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: schroot
Version: 1.2.0-1
Severity: wishlist
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().
Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#488225; Package schroot.
(full text, mbox, link).
Acknowledgement sent to Roger Leigh <rleigh@whinlatter.ukfsn.org>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>.
(full text, mbox, link).
Message #10 received at 488225@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Max Kellermann <max@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.
[Message part 2 (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#488225; Package schroot.
(Wed, 29 Jan 2014 15:42:10 GMT) (full text, mbox, link).
Acknowledgement sent
to Max Kellermann <max@duempel.org>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>.
(Wed, 29 Jan 2014 15:42:10 GMT) (full text, mbox, link).
Message #15 received at 488225@bugs.debian.org (full text, mbox, reply):
On 2008/06/29 15:37, Roger Leigh <rleigh@whinlatter.ukfsn.org> wrote:
> Max Kellermann <max@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.
Hi Roger,
it's been a while since my feature request. I've finally written a
small piece of code that implements the option "unshare.mount".
Please pull git://gitorious.org/schroot/schroot.git ns
Tested only with "type=directory". It does not yet use pivot_root()
instead of chroot().
Max
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Tue Jan 30 06:53:06 2024;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.