[Bug 855662] New: Permission problem with user mounting of partitions
https://bugzilla.novell.com/show_bug.cgi?id=855662 https://bugzilla.novell.com/show_bug.cgi?id=855662#c0 Summary: Permission problem with user mounting of partitions Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: stiening@comcast.net QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 The following line is a from fstab (a raid array if that matters) /dev/md0 /data ext4 noatime,user,noauto,acl 0 0 A member of the users group can successfully mount the partition but not umount it. postgres@esplanade:~> mount /data postgres@esplanade:~> umount /data umount: /data: mountpoint not found This is probably a permission problem. Reproducible: Always Steps to Reproduce: 1. Do waht is described in "Details" above 2. 3. Actual Results: See "Details" Expected Results: In the past the users group member could umount the device if he mounted it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=855662 https://bugzilla.novell.com/show_bug.cgi?id=855662#c Xiyuan Liu <xyliu@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyliu@suse.com AssignedTo|bnc-team-screening@forge.pr |sbrabec@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=855662 https://bugzilla.novell.com/show_bug.cgi?id=855662#c1 Stanislav Brabec <sbrabec@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Stanislav Brabec <sbrabec@suse.com> 2013-12-17 19:36:23 CET --- I can reproduce, and the strace output looks really strange: umount("", 0x8 /* MNT_??? */) = -1 EPERM (Operation not permitted) chdir("/") = 0 getcwd("/", 4096) = 2 umount("dtaa", 0) = -1 EPERM (Operation not permitted) ^^^^ The same for /suse123 umount("", 0x80000000 /* MNT_??? */) = -1 EINVAL (Invalid argument) umount("", 0x8 /* MNT_??? */) = -1 EPERM (Operation not permitted) chdir("/") = 0 getcwd("/", 4096) = 2 umount("use123", 0) = -1 EPERM (Operation not permitted) ^^^^^^ Names of volume to unmount are mangled. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=855662 https://bugzilla.novell.com/show_bug.cgi?id=855662#c2 --- Comment #2 from Stanislav Brabec <sbrabec@suse.com> 2013-12-17 20:28:39 CET --- This problem is already fixed in the upstream: commit 4e9f59d1ee293108cd1d577f7b1a182f5b0ac9c0 Author: Dave Reisner <dreisner@archlinux.org> Date: Tue Sep 17 17:05:09 2013 -0400 libmount: use memmove when overlap possible When unmounting some mountpoints as an unprivileged user (via the 'user' option in fstab), the umount fails. Debug output of 'umount /opt' reveals: 17760: libmount: CXT: [0x22890e0]: do umount 17760: libmount: UTILS: moving to /opt parent 17760: libmount: CXT: current directory moved to / [last_component='opt'] 17760: libmount: CXT: [0x22890e0]: umount(2) [target='pt', flags=0x00000000] valgrind shows the problem: ==23544== Source and destination overlap in memcpy(0x58d1370, 0x58d1371, 4) ==23544== at 0x4C2BBC3: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==23544== by 0x4E537C3: mnt_chdir_to_parent (utils.c:168) ==23544== by 0x4E45E4C: mnt_context_do_umount (context_umount.c:601) ==23544== by 0x4E46513: mnt_context_umount (context_umount.c:855) ==23544== by 0x403476: umount_one (umount.c:299) ==23544== by 0x402B34: main (umount.c:629) ==23544== ref: https://bugs.archlinux.org/task/36968 Signed-off-by: Dave Reisner <dreisner@archlinux.org> Fix submitted as a maintenance request 211283. Factory should have fixed version util-linux-2.24. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=855662 https://bugzilla.novell.com/show_bug.cgi?id=855662#c3 --- Comment #3 from Swamp Workflow Management <swamp@suse.de> 2014-01-07 11:07:07 UTC --- openSUSE-RU-2014:0031-1: An update that has one recommended fix can now be installed. Category: recommended (moderate) Bug References: 855662 CVE References: Sources used: openSUSE 13.1 (src): util-linux-2.23.2-6.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com