Bug#623913: [buildd-tools-devel] Bug#623913: schroot: Please support read-only bind-mounts

2014-09-05 Thread Chris Fester
Hi all, I looked at the source code for schroot, and found that a mount command was being forked/exec'd for every line in the fstab file. I was able to get ro bind mounts working with two entries in the fstab file. Examples: /sandboxes/rev3disks/platform /home/Platformnone

Bug#623913: [buildd-tools-devel] Bug#623913: schroot: Please support read-only bind-mounts

2014-02-23 Thread Roger Leigh
On Sat, Feb 22, 2014 at 11:42:11AM +0100, Ralf Jung wrote: this would indeed be a great feature. It would also be interesting to be able to make the chroot root mount (which is not controlled by the fstab file) read-only. I recall that there's a reason why ro,bind doesn't work directly--you

Bug#623913: [buildd-tools-devel] Bug#623913: schroot: Please support read-only bind-mounts

2014-02-23 Thread Ralf Jung
Hi, I recall that there's a reason why ro,bind doesn't work directly--you have to do two bind mounts to get it properly read-only. Is that correct? What's the recommended sequence to make this work properly? If we see ro and bind in the mount options, we can probably special-case it; but

Bug#623913: schroot: Please support read-only bind-mounts

2014-02-22 Thread Ralf Jung
Hi, this would indeed be a great feature. It would also be interesting to be able to make the chroot root mount (which is not controlled by the fstab file) read-only. Furthermore, there are additional interesting flags that can be set for bind mounts, but only with a remount - think of nosuid,

Bug#623913: schroot: Please support read-only bind-mounts

2011-04-24 Thread Stefano Rivera
Package: schroot Version: 1.4.21-1+b1 Severity: wishlist Linux supports read-only bind-mounts, but they can only be made read-only after bind-mounting, not during. i.e. mount --bind /foo /bar mount -o remount,ro /bar I hacked support for this into my schroot installation by running the following