On Tue, Feb 09, 2010 at 12:14:15AM +0000, Roger Leigh wrote:
> On Sat, Jan 23, 2010 at 06:39:51PM +0100, Aurelien Jarno wrote:
> > Please find below a patch to support GNU/kFreeBSD. I don't know how you
> > plan to deal with architecture specific changes in scripts, so I have
> > decided to just modify them in this patch. With it I have been able to
> > get schroot working in plain, directory, block device and loopback modes.
> > I haven't tested the other modes yet.
> 
> Thanks.  I've updated schroot on the master branch using the following
> patch (it's several changes in git).  Note this hasn't been tested yet;
> I'm really just looking for some review before I put it to use.  I'll
> do some testing tomorrow when I have some more time to review it.  It
> may need some further work, so I would appreciate your comments.

There's also this change for the mounted filesystems.  I'd like to know
if it's absolutely essential to mount /dev into the chroot in order to
get a working chroot?  Currently, we default to not doing this on
Linux, for some measure of security.


diff --git a/etc/default/freebsd/fstab b/etc/default/freebsd/fstab
index de8b733..cbb93b8 100644
--- a/etc/default/freebsd/fstab
+++ b/etc/default/freebsd/fstab
@@ -3,10 +3,8 @@
 # (CHROOT_PATH)
 #
 # <file system>        <mount point>   <type>  <options>       <dump>  <pass>
-proc           /proc           proc    defaults        0       0
-#procbususb      /proc/bus/usb   usbfs   defaults        0       0
-#/dev            /dev            none    rw,bind         0       0
-/dev/pts       /dev/pts        none    rw,bind         0       0
-/dev/shm       /dev/shm        none    rw,bind         0       0
-/home          /home           none    rw,bind         0       0
-/tmp           /tmp            none    rw,bind         0       0
+proc           /proc           linprocfs       defaults        0       0
+#dev           /dev            devfs   rw,bind         0       0
+dev            /dev/fd         fdescfs rw,bind         0       0
+/home          /home           nullfs  rw              0       0
+/tmp           /tmp            nullfs  rw              0       0

-- 
  .''`.  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 mail.

Attachment: signature.asc
Description: Digital signature

Reply via email to