Bug 909010 - Cannot mount external firewire hard drive or usb thumb drive as normal user, root required
Summary: Cannot mount external firewire hard drive or usb thumb drive as normal user, ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: udisks2
Version: 18
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tomáš Bžatek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 909826
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-08 03:13 UTC by Kyle Pablo
Modified: 2015-03-03 23:06 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-04 23:58:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Policykit prompt (53.33 KB, image/png)
2013-02-08 03:13 UTC, Kyle Pablo
no flags Details
Policykit prompt example (53.58 KB, image/png)
2013-02-08 03:14 UTC, Kyle Pablo
no flags Details
sysinfo (12.16 KB, text/plain)
2013-02-08 03:15 UTC, Kyle Pablo
no flags Details
lspci (2.27 KB, application/octet-stream)
2013-02-08 03:18 UTC, Kyle Pablo
no flags Details
udisksctl dump (43.74 KB, application/octet-stream)
2013-02-18 21:47 UTC, Kyle Pablo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 62077 0 None None None Never

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.


Note You need to log in before you can comment on or make changes to this bug.