#749960 schroot: please support a proot type of chroot

#749960#5
Date:
2014-05-31 02:31:54 UTC
From:
To:
Please add support for proot in schroot, it uses ptrace to emulate
chroots, which means that users who don't have any root access can
create and enter chroots. As a result schroot wouldn't have to become
root to create these chroots. Here is the package description:

Package: proot
Description-en: emulate chroot, bind mount and binfmt_misc for non-root users
 PRoot is a user-space implementation of chroot, mount --bind,
 and binfmt_misc.
 .
 This means that users don't need any privileges or setup to do things like
 using an arbitrary directory as the new root filesystem, making files
 accessible somewhere else in the filesystem hierarchy, or executing programs
 built for another CPU architecture transparently through QEMU user-mode.
 .
 Also, developers can add their own features or use PRoot as a Linux process
 instrumentation engine thanks to its extension mechanism.
 .
 Technically PRoot relies on ptrace, an unprivileged system-call available in
 every Linux kernel.
Homepage: http://proot.me

#749960#10
Date:
2014-07-15 20:57:40 UTC
From:
To:
tags 749960 + moreinfo
thanks

This certainly looks very interesting.  However, we do need root
for a number of things in addition to what proot provides.
It could certainly work for the very simple case, but would not
be able to support any user switching, PAM auth, filesystem
mounting, union overlays, lvm snapshotting etc., so you'd lose
the greater part of all the features of schroot.

I'm afraid I won't have time to dedicate to this, but I'd certainly
be open to proposed patches or just general detail on how it might
be implemented.


Regards,
Roger