Bug 909010

Summary: Cannot mount external firewire hard drive or usb thumb drive as normal user, root required
Product: [Fedora] Fedora Reporter: Kyle Pablo <kylepablo>
Component: udisks2Assignee: Tomáš Bžatek <tbzatek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 18CC: kevin, paul.lipps, rdieter, tbzatek, tsmetana
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-04 23:58:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 909826    
Bug Blocks:    
Attachments:
Description Flags
Policykit prompt
none
Policykit prompt example
none
sysinfo
none
lspci
none
udisksctl dump none

Description Kyle Pablo 2013-02-08 03:13:40 UTC
Created attachment 694900 [details]
Policykit prompt

Description of problem:
When attaching or automounting external firewire hard drive, system prompts for root password.  Device chown is set to non-root user.  F17 did not have this issue.

Version-Release number of selected component (if applicable):
udisks2-2.0.1-1.fc18.x86_64


How reproducible:
Everytime

Steps to Reproduce:
1. attach firewire hard drive or set to automount
2. ask for root password
3.
  
Actual results:


Expected results:
should mount without root password

Additional info:

Comment 1 Kyle Pablo 2013-02-08 03:14:32 UTC
Created attachment 694902 [details]
Policykit prompt example

Comment 2 Kyle Pablo 2013-02-08 03:15:06 UTC
Created attachment 694903 [details]
sysinfo

Comment 3 Kyle Pablo 2013-02-08 03:18:15 UTC
Created attachment 694905 [details]
lspci

Comment 4 Kevin Kofler 2013-02-14 18:43:00 UTC
> F17 did not have this issue.

To be clear, that's because KDE's Solid still used udisks 1 on F17. udisks2 has probably always had this bug.

Comment 5 Kyle Pablo 2013-02-16 00:14:32 UTC
Ŭpon further investigation I can't mount usb thumb drives as normal user.

Comment 6 Paul Lipps 2013-02-18 16:34:49 UTC
In KDE, Device Notifier is not even aware when I insert or remove a USB device.

Comment 7 Kyle Pablo 2013-02-18 16:44:23 UTC
This bug cannot be breaking basic functionality of using external devices.  Needs to be fixed.

Comment 8 Kyle Pablo 2013-02-18 21:47:49 UTC
Created attachment 699164 [details]
udisksctl dump

Comment 9 Kyle Pablo 2013-02-18 21:49:31 UTC
(In reply to comment #5)
> Ŭpon further investigation I can't mount usb thumb drives as normal user.

Not the case anymore.  Only firewire hard drives are affected.

Comment 10 Kyle Pablo 2013-02-25 20:29:51 UTC
(In reply to comment #9)
> (In reply to comment #5)
> > Ŭpon further investigation I can't mount usb thumb drives as normal user.
> 
> Not the case anymore.  Only firewire hard drives are affected.

Update: USB Thumb drives are affected.

[357263.897648] systemd-udevd[24518]: Failed to set security context (null) for /dev/disk/by-path: File exists
[357263.897745] systemd-udevd[24518]: Failed to set security context (null) for /dev/disk/by-path: File exists
[357263.897842] systemd-udevd[24518]: Failed to set security context (null) for /dev/disk/by-path: File exists
[357263.897937] systemd-udevd[24518]: Failed to set security context (null) for /dev/disk/by-path: File exists
[357263.898058] systemd-udevd[332]: seq 7471 '/devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.0/host21/target21:0:0/21:0:0:0/block/sdb' killed

Comment 11 Kyle Pablo 2013-03-10 22:29:43 UTC
I filed this bug upstream:

https://bugs.freedesktop.org/show_bug.cgi?id=62077

Comment 12 Kyle Pablo 2013-03-11 23:31:59 UTC
I set selinux to permissive mode and the firewire hdd issue persists. USB issue has gone away (for now). I don't get the errors from bug 909826 too.  Only that one time.  Suggestions?  The bug I filed upstream has been closed.  The dev thinks it's an selinux issue...I'm not sure

Comment 13 Kyle Pablo 2013-03-15 02:06:02 UTC
The USB issue came back after a reboot and new kernel.  The issue is most likely related to selinux bug --->https://bugzilla.redhat.com/show_bug.cgi?id=909826.

The firewire issue is or isnt a selinux related?

Comment 14 Kevin Kofler 2013-03-15 02:37:56 UTC
The firewire issue can't be SELinux-related because you said "I set selinux to permissive mode and the firewire hdd issue persists."

Comment 15 Kyle Pablo 2013-03-19 14:48:24 UTC
Can we get this patch into udisks2:


This is very useful and immediately helped solve the problem. This patch should
fix it:

http://cgit.freedesktop.org/udisks/commit/?id=b841e30a98459816dfc49a735d3db4355a88edcd

This patch will be in udisks 2.1.1. For Fedora, I would suggest asking the
Fedora maintainer to include it in the relevant versions. Thanks.



From: https://bugs.freedesktop.org/show_bug.cgi?id=62077

Comment 16 Kevin Kofler 2013-03-19 15:03:07 UTC
So, can we please have this patch applied in Fedora?

Comment 17 Kyle Pablo 2013-03-27 18:30:15 UTC
Now that bug 909826 is fixed, can we patch this bug?

Comment 18 Fedora Update System 2013-03-28 13:11:15 UTC
udisks2-2.0.1-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/udisks2-2.0.1-2.fc18

Comment 19 Fedora Update System 2013-03-29 01:38:03 UTC
Package udisks2-2.0.1-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing udisks2-2.0.1-2.fc18'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-4568/udisks2-2.0.1-2.fc18
then log in and leave karma (feedback).

Comment 20 Fedora Update System 2013-04-04 23:58:15 UTC
udisks2-2.0.1-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.