[Bug 679159] New: usbmuxd RPM doesn't create usbmuxd userid / group
https://bugzilla.novell.com/show_bug.cgi?id=679159 https://bugzilla.novell.com/show_bug.cgi?id=679159#c0 Summary: usbmuxd RPM doesn't create usbmuxd userid / group Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Major Priority: P5 - None Component: Hotplug AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: chris.brown@sybase.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b12) Gecko/20110222 Firefox/4.0b12 The RPM "usbmuxd" included with the openSUSE 11.4 expects there to be a userid of "usbmux" however this userID doesn't exist on the system. If you look at the udev rule for usbmuxd, it's wanting to run as the user 'usbmux' ... but that user doesn't exist on the system. An error is printed to /var/log/messages that says: Mar 12 20:25:58 quagmire usbmuxd[6696]: [0] Dropping privileges failed, check if user 'usbmux' exists! -- which doesn't. I tried to create the user manually but I don't know what group and priviledges it needs, therefore any iOS device will not be able to connect and sync up to an OpenSUSE 11.4 system until this is repaired. By the way ... if you run "usbmuxd -u" as the 'root' user, then everything works fine. Reproducible: Always Steps to Reproduce: 1. Plug in your iPhone 2. Sit and wait .. nothing happens 3. Actual Results: See above Expected Results: Would expect 2 dialog boxes to appear, 1 asking me if I want to open F-Spot and another asking me if I want to open Banshee -- 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=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c1
M. S.
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c2
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c3
--- Comment #3 from M. S.
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c4
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c5
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c6
--- Comment #6 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c7
--- Comment #7 from M. S.
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c8
--- Comment #8 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c9
--- Comment #9 from M. S.
what's wrong with opening the device before dropping privileges?
Because usbmuxd (USB multiplex daemon) opens connections to multiple iDevices and is not guaranteed to exit even once all devices are gone. For instance, you can attach one iDevice, usbmuxd opens it and drops privileges. Afterwards you attach a second one and the still running usbmuxd would not have privileges to open up that one. A typical scenario is that people replug a device quickly and since some client application might still be connected to usbmuxd's exposed socket, it won't exit and thus still run with dropped privileges being unable to access the device being plugged in again. Thus, the only thing I can think of now is that extra udev rule assigning ownership to the "usbmux" user as that would allow usbmuxd to still open any new devices while having dropped privileges overall OR just patch the udev rule as I did before and leave it running as root. I'd be interested in some ConsoleKit solution but lack the understanding how it does work... -- 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=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c10
--- Comment #10 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c11
--- Comment #11 from M. S.
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c12
--- Comment #12 from M. S.
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c13
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c14
M. S.
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c15
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c16
Christian Dengler
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c17
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c18
--- Comment #18 from M. S.
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c19
--- Comment #19 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c20
--- Comment #20 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c21
Christian Dengler
I submitted the package to openSUSE:Factory and it got accepted after review. However, I am unable to access the SWAMP URL above at all (I guess it's Intranet).
Yes, Swamp is in the intranet. You can submit a patchinfo by using osc or the webinterface of the build service. I created a patchinfo now with the information from comment #18. The package is available shortly in the update-test repo for testing. -- 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=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c22
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c23
Vadim Krevs
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c24
M. S.
Hmm, does not work for me on openSUSE 11.4/x86_64. When I connect my 2nd gen ipod, the following is displayed in /var/log/messages:
Apr 22 20:18:20 starfire kernel: [ 154.883040] fuse init (API version 7.15) Apr 22 20:18:59 starfire pulseaudio[2794]: ratelimit.c: 3 events suppressed Apr 22 20:19:08 starfire kernel: [ 203.341415] usb 2-3.1: new high speed USB device using ehci_hcd and address 7 Apr 22 20:19:08 starfire kernel: [ 203.419658] usb 2-3.1: New USB device found, idVendor=05ac, idProduct=1293 Apr 22 20:19:08 starfire kernel: [ 203.419662] usb 2-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Apr 22 20:19:08 starfire kernel: [ 203.419665] usb 2-3.1: Product: iPod Apr 22 20:19:08 starfire kernel: [ 203.419668] usb 2-3.1: Manufacturer: Apple Inc. Apr 22 20:19:08 starfire kernel: [ 203.419671] usb 2-3.1: SerialNumber: 41dcefbe51f5a94cdec824f38d3118b7dead1bf0
usbmuxd is running as a the "usbnux" user: # ps -ef | grep usb root 52 2 0 20:15 ? 00:00:00 [usbhid_resumer] usbmux 748 1 0 20:15 ? 00:00:00 /usr/sbin/usbmuxd -u -U usbmux usbmux 3632 1 0 20:19 ? 00:00:00 /usr/sbin/usbmuxd -u -U usbmux vadymk 3932 2732 0 20:19 pts/2 00:00:00 grep usb
KDE only recognizes the ipod as a "camera".
Automounting of iDevices is only supported on GNOME. See: https://bugs.kde.org/show_bug.cgi?id=267701
However, when I launch Banshee from console, it finds an Apple Ipod device, however is unable to access it:
[Info 20:19:37.520] AppleDeviceSource is ignoring unmounted volume vadymk’s iPod libusb couldn't open USB device /dev/bus/usb/002/006: Permission denied. libusb requires write access to USB device nodes. Device 0 (VID=05ac and PID=1293) is a Apple iPod Touch 2nd Gen.
# rpm -q iproxy libusbmuxd1 usbmuxd iproxy-1.0.7-3.3.1.x86_64 libusbmuxd1-1.0.7-3.3.1.x86_64 usbmuxd-1.0.7-3.3.1.x86_64
Please check with lsusb if /dev/bus/usb/002/006 is really your iPod device and run "l /dev/bus/usb/002/" to view the ownership of the device file (it must be usbmux:root). Please report if the file "/lib/udev/rules.d/85-usbmuxd.rules" contains the option OWNER="usbmux" on your system. If you are able to run "ideviceinfo", which should output a list of information, your libimobiledevice setup is working fine and this bug is fixed. You should then file a bug for KDE or Banshee regarding this issue. -- 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=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c25
Vadim Krevs
https://bugzilla.novell.com/show_bug.cgi?id=679159
https://bugzilla.novell.com/show_bug.cgi?id=679159#c26
M. S.
Hi M.S.! Thank you for such a prompt reply. You are right - I was too hasty to report this - /dev/bus/usb/002/006 is not the iPod. The iPod is /dev/bus/usb/002/007. It's ownership is correct:
l /dev/bus/usb/002/007 crw-rw-r--+ 1 usbmux root 189, 134 Apr 22 21:13 /dev/bus/usb/002/007
And /lib/udev/rules.d/85-usbmuxd.rules does contain the OWNER="usbmux" option.
However, I can only successfully run ideviceinfo as root. When running it as a normal user, I get
$ ideviceinfo GNUTLS ERROR: A TLS packet with unexpected length was received.
Is that expected behaviour?
Run "idevicepair unpair" then "idevicepair pair". This should fix your issue. Make sure to have libimobiledevice >= 1.0.4. Other than that, in the initial context of this bug, the issue is resolved. If you still have issues feel free to post them in the upstream bugtracker: http://libiphone.lighthouseapp.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.
participants (1)
-
bugzilla_noreply@novell.com