FS#28936 - [util-linux] 2.21-5 disallows umounting as user

Attached to Project: Arch Linux
Opened by x (onexused) - Friday, 16 March 2012, 00:45 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 18 March 2012, 16:04 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Dave Reisner (falconindy)
Tom Gundersen (tomegun)
Architecture i686
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After I upgraded to util-linux-2.21-5, I could no longer umount devices with the 'user' option in fstab as user.
[code]
$ mount /dev/sdb1
$ umount /dev/sdb1
umount: only root can unmount /dev/sdb1 from /media/disk
[/code]
Downgrading to util-linux-2.20.1-2 fixed this.

Steps to reproduce:
{The following is supposed to show that:
1) Devices mounted by a normal user with 2.20.1-2 can't be umounted by a normal user with 2.21-5
2) Devices mounted by a normal user with 2.21-5 can't be umounted by a normal user with either 2.20.1-2 or 2.21-5
3) Devices mounted by a normal user with 2.20.1-2 can be umounted by a normal user with 2.20.1-2 }

- In /etc/fstab, add/modify a line similar to this: /dev/sdb1 /media/disk vfat noauto,user,dmask=0000,fmask=0111 0 0
- Install/downgrade to/upgrade to util-linux-2.20.1-2
- From the command line as a normal user, type (as appropriate): mount /dev/sdb1
-- mount should succeed
- upgrade to util-linux-2.21-5
- From the command line as a normal user, type (as appropriate): umount /dev/sdb1
-- umount should fail, requesting root permissions
- umount the device as root
- mount and attempt to umount the device as a normal user
-- umount should fail, requesting root permissions
- Downgrade to util-linux-2.20.1-2
- Attempt to umount the device as a normal user
-- umount should fail, requesting root permissions
- umount the device as root
- mount and attempt to umount the device as a normal user
-- umount should succeed
This task depends upon

Closed by  Dave Reisner (falconindy)
Sunday, 18 March 2012, 16:04 GMT
Reason for closing:  Fixed
Comment by Dave Reisner (falconindy) - Friday, 16 March 2012, 01:44 GMT
Works for me. Or at least, i can mount... not umount. /run/mount/utab isn't being written properly.
Comment by Dave Reisner (falconindy) - Friday, 16 March 2012, 02:39 GMT
Yay, packaging bug... Fixed in testing.
Comment by Dave Reisner (falconindy) - Saturday, 17 March 2012, 03:07 GMT
and now in core... please retest
Comment by x (onexused) - Sunday, 18 March 2012, 16:02 GMT
This has been fixed in 2.21-6.

Loading...