Hi Pablo, Pablo Barbachano [2006-06-14 12:20 +0100]:
> I think it would be desirable to be able to mount loop devices as a > regular user. Indeed, that is already a long standing item on my list. I hope to be able to solve this soon. > For that, several things have to be fixed: > 1. /dev/loop* need to have a group different that 'disk'. 'plugdev', for > example. Not necessarily. pmount does not care about groups of device nodes, and I do not think it is a good idea to start doing so (since every distro handles groups in an different manner). > 2. /dev/loop* need to be included in /etc/pmount.allow, or change > linux so /sys/block/loop*/removable is 1 instead of 0 (I think this > is the best solution). Neither is necessary. > 3. pmount would have to be changed so if the parameter is a file > instead of a device, do something similar to: > > /sbin/losetup /dev/loop0 fs.img > > And then use /dev/loop0 as a normal device and mount it in > /dev/fs.img Indeed, this is not complicated at all, and this is what I'm going to do when I implement this. > Probably what I am proposing is crazy (since I haven't thought about > security, etc...) It's not that crazy, but we have to pay attention to not cause a DoS due to loop device exhaustion. There are only 8 loop devices available, so as long as the kernel imposes this restriction, and a normal user should not be able to use up all of them. In general, I think using an approach that avoids mounting entirely would be a better alternative (like Gnome's file-roller, which can browse CD ISO images already). I'll think about this some more. Thanks, Martin -- Martin Pitt http://www.piware.de Ubuntu Developer http://www.ubuntulinux.org Debian Developer http://www.debian.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

