Patch to make mount follow a symlink at /etc/mtab

Jason Straight jason at jeetkunedomaster.net
Sat Dec 30 21:09:52 GMT 2006


http://readlist.com/lists/vger.kernel.org/linux-kernel/25/128078.html

I'm hoping the above patch could be incorporated into ubuntu's util-linux 
package.

I administer 1 library right now with 25 workstations, and I've got 2 others 
interested in a similar setup, however because mount doesn't like mtab being 
a symlink I have to have either unionfs (which always has some issue / 
instability), or to have separate /etc dirs for each workstation which means 
more administration.

If I symlink /proc/mounts to /etc/mtab it works, but since the user info 
portion of the mount isn't stored in the /proc/mounts it means that once a 
user mounts a device they can't unmount it.

intelikey on #kubuntu came up with the idea of using a sudo wrapper for 
umount, which would work, but would introduce a small security issue of 
someone being crafty with the sudo use.

-- 
| Jason Straight
| SkyCon.net 231-627-3528
| Jabber: leejunfan at jabber.org
| Yahoo: jasonrstraight
| ICQ: 1796276 
| MSN: glock21-45cal at hotmail.com
| AIM: JasonRStraight



More information about the ubuntu-devel mailing list