Red Hat Bugzilla – Bug 56593
umount is improperly allowed for ordinary user
Last modified: 2007-04-18 12:38:23 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901
Description of problem:
/mnt/hdc6 and /dev/hdc6 are flagged in fstab as ext2 with "noauto,owner"
An ordinary user can umount this partition although he does not have
device file ownership as required by the mount manpage. Only root
can mount it; the lax enforcement is with umount.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.fstab entry /dev/hdc6 /mnt/hdc6 ext2 noauto,owner
2.ordinary user does NOT own the device file as "mount" manpage says
he would need if he were to be able to mount/unmount it
3.Only root can mount it, but the ordinary user can unmount it
Actual Results: umount succeeded when it shouldn't have
Expected Results: The ordinary user shouldn't have been allowed to umount
When I tried to "strace" it, the permission was correctly enforced.
Oops, this should of course have been attributed to component "mount", instead
of to util-linux.
Yikes, thanks. I've got a patch in the works.
*** This bug has been marked as a duplicate of 58067 ***