View Full Version : Help identifying a problem

25th July 2007, 11:45 PM
After a series of updates to F7, I suddenly lost capability to connect to my MTP device (iriver Clix) through the use of libmtp as a regular user. As root, though it is still possible. However I'm not sure where the problem lies. At first I suspected the problem might be within SELinux, as there were updates for the targeted policy recently, but I can't be certain that this is the case.

mtp-detect shows:

Attempting to connect device(s)
usb_claim_interface(): Operation not permitted
LIBMTP PANIC: Unable to initialize device 1
LIBMTP PANIC: configure_usb_devices() error code: 7 on line 1686
Detect: There has been an error connecting. Exiting

This is while trying to access the mtp device as a regular user, where as root has no problems whatsoever, and as noted this is a privileges problem. I don't seem to see anywhere anything about USB (unless it is as a module) for SELinux in the SELinux Administration tool, trying to launch the audit for the USB module results in a 100% CPU utilization. The current policy mode for SELinux is "permissive". I'm not sure how to determine if it is indeed SELinux what's causing trouble or not. I don't seem to find any logs or the like for SELinux policies. And even though there are some dbus related logged entries about SELinux preventing /sbin/setfiles to pipe data or something similar:

Jul 25 16:55:56 Blackhawk setroubleshoot: SELinux is preventing /sbin/setfiles (semanage_t)
"noatsecure" to pipe:[19318] (setfiles_t). For complete SELinux messages. run sealert -l

Running that command results in a response:

Jul 25 17:34:02 Blackhawk setroubleshoot: [rpc.ERROR] attempt to open server connection failed: (111, 'Connection refused')

Help, TIA

26th July 2007, 12:53 AM
You need to correctly relabel the file in question. To help find out what is correct context, install SELinux Troubleshooter via Yum and it'll pop-up infomation what is causing denial and how to solve it.

26th July 2007, 01:11 AM
Well... SELinux was not the issue, I disabled it and rebooted and nothing. I can't still connect to my MTP device. I'd have to check what other stuff I can't do (attaching as I write these lines a USB drive to see if it would mount as a regular user... it does). I'm not sure what update caused the problem, I'll try looking through the yum.log and see... It must have been installed in the past three days, as the last time I used my Clix on this machine was about four days ago...

These are the updates (and hence the possible culprit must lie within these) of the last four days:

Jul 21 10:28:39 Updated: cairo.x86_64 1.4.10-1.fc7
Jul 21 10:28:42 Updated: nss.x86_64 3.11.7-0.7.2.fc7
Jul 21 10:29:02 Updated: firefox.x86_64
Jul 21 10:29:05 Updated: libselinux.x86_64 2.0.14-4.fc7
Jul 21 10:29:07 Updated: cairo.i386 1.4.10-1.fc7
Jul 21 10:29:09 Updated: nss-devel.x86_64 3.11.7-0.7.2.fc7
Jul 21 10:29:10 Updated: libselinux.i386 2.0.14-4.fc7
Jul 21 10:29:11 Updated: cups-libs.x86_64 1:1.2.12-1.fc7
Jul 21 10:29:15 Updated: nss.i386 3.11.7-0.7.2.fc7
Jul 21 10:29:24 Updated: firefox.i386
Jul 21 10:29:37 Updated: wine-core.i386 0.9.41-1.fc7
Jul 21 10:29:38 Updated: gnome-python2-extras.x86_64 2.14.3-4.fc7
Jul 21 10:30:10 Updated: devhelp.x86_64 0.13-9.fc7
Jul 21 10:30:25 Updated: devhelp.i386 0.13-9.fc7
Jul 21 10:30:30 Updated: gnome-sharp.x86_64 2.16.0-3.fc7
Jul 21 10:31:02 Installed: kernel.x86_64
Jul 21 10:31:04 Updated: libpaper.i386 1.1.21-1.fc7.1
Jul 21 10:31:05 Updated: cups-libs.i386 1:1.2.12-1.fc7
Jul 21 10:31:06 Updated: libpaper.x86_64 1.1.21-1.fc7.1
Jul 21 10:31:16 Updated: yelp.x86_64 2.18.1-5.fc7
Jul 21 10:31:22 Updated: libselinux-python.x86_64 2.0.14-4.fc7
Jul 21 10:31:28 Updated: libselinux-devel.i386 2.0.14-4.fc7
Jul 21 10:31:50 Installed: kernel-devel.x86_64
Jul 21 10:32:09 Updated: cups.x86_64 1:1.2.12-1.fc7
Jul 21 10:32:11 Updated: wine-tools.i386 0.9.41-1.fc7
Jul 21 10:32:25 Updated: firefox-devel.x86_64
Jul 21 10:32:29 Updated: kernel-headers.x86_64
Jul 21 10:32:29 Updated: gnome-python2-gtkhtml2.x86_64 2.14.3-4.fc7
Jul 21 10:32:32 Updated: autofs.x86_64 1:5.0.1-20
Jul 21 10:32:32 Updated: gnome-python2-gtkmozembed.x86_64 2.14.3-4.fc7
Jul 21 10:32:38 Updated: tzdata.noarch 2007f-1.fc7
Jul 21 10:32:40 Updated: livna-config-display.noarch 0.0.15-1.lvn7
Jul 21 10:32:42 Updated: gnome-python2-libegg.x86_64 2.14.3-4.fc7
Jul 21 10:32:56 Updated: galeon.x86_64 2.0.3-10.fc7
Jul 21 10:33:00 Installed: kmod-nvidia.x86_64 100.14.11-
Jul 21 10:33:01 Updated: mdadm.x86_64 2.6.2-4.fc7
Jul 21 10:33:05 Updated: util-linux.x86_64 2.13-0.52.fc7
Jul 21 10:33:14 Updated: thunderbird.x86_64
Jul 21 10:33:15 Updated: cairo-devel.x86_64 1.4.10-1.fc7
Jul 21 10:33:34 Updated: firefox-devel.i386
Jul 21 10:33:35 Updated: libselinux-devel.x86_64 2.0.14-4.fc7
Jul 21 10:33:37 Updated: nss-tools.x86_64 3.11.7-0.7.2.fc7
Jul 23 15:52:09 Updated: kdelibs.i386 6:3.5.7-9.fc7
Jul 23 15:52:14 Updated: qt4.x86_64 4.3.0-9.fc7.1
Jul 23 15:52:17 Updated: qt4-x11.x86_64 4.3.0-9.fc7.1
Jul 23 15:52:52 Updated: kdelibs.x86_64 6:3.5.7-9.fc7
Jul 23 15:52:58 Updated: selinux-policy.noarch 2.6.4-28.fc7
Jul 23 15:53:40 Updated: gnome-utils.i386 1:2.18.1-2.fc7
Jul 23 15:54:08 Updated: gnome-utils.x86_64 1:2.18.1-2.fc7
Jul 23 15:54:11 Updated: iwlwifi-firmware.noarch 2.14.4-1
Jul 23 15:54:12 Updated: ed.x86_64 0.7-1.fc7
Jul 23 15:54:20 Updated: gdesklets.x86_64 0.35.4-8.fc7
Jul 23 15:54:47 Updated: selinux-policy-targeted.noarch 2.6.4-28.fc7
Jul 23 15:55:14 Updated: gedit.x86_64 1:2.18.2-1.fc7
Jul 23 15:55:35 Updated: gdm.x86_64 1:2.18.3-1.fc7
Jul 25 03:58:41 Updated: mplayer.x86_64 1.0-0.80.20070715svn.lvn7
Jul 25 03:59:01 Updated: xine.x86_64 0.99.5-1.lvn7
Jul 25 03:59:05 Updated: mencoder.x86_64 1.0-0.80.20070715svn.lvn7
Jul 25 03:59:09 Updated: mplayer-gui.x86_64 1.0-0.80.20070715svn.lvn7
Jul 25 04:54:07 Updated: evolution-data-server.i386
Jul 25 04:54:09 Updated: fuse.x86_64 2.7.0-3.fc7
Jul 25 04:54:10 Updated: fuse-libs.i386 2.7.0-3.fc7
Jul 25 04:54:17 Updated: evolution-data-server.x86_64
Jul 25 04:54:18 Updated: bind-libs.x86_64 31:9.4.1-7.P1.fc7
Jul 25 04:54:19 Updated: libXi.x86_64 1.1.1-1.fc7
Jul 25 04:54:20 Updated: fuse-libs.x86_64 2.7.0-3.fc7
Jul 25 04:54:21 Updated: libXi.i386 1.1.1-1.fc7
Jul 25 04:54:22 Updated: SDL_mixer.x86_64 1.2.7-3.fc7
Jul 25 04:54:23 Updated: SDL_mixer.i386 1.2.7-3.fc7
Jul 25 04:54:24 Updated: ntfs-3g.i386 2:1.710-1.fc7
Jul 25 04:54:25 Updated: kde-settings.noarch 3.5-30.fc7
Jul 25 04:54:31 Updated: evolution-data-server-devel.i386
Jul 25 04:54:32 Updated: kde-settings-kdm.noarch 3.5-30.fc7
Jul 25 04:54:35 Updated: evolution-data-server-devel.x86_64
Jul 25 04:54:36 Updated: bind-utils.x86_64 31:9.4.1-7.P1.fc7
Jul 25 04:54:37 Updated: ntfs-3g.x86_64 2:1.710-1.fc7
Jul 25 04:54:38 Updated: libXi-devel.x86_64 1.1.1-1.fc7

Oh, and just got stung by another F7 bug (yay!) trying to run 'yum info <package>' results in a crash, regardless if I run it as user or root:

Loading "installonlyn" plugin
Installed Packages
Name : nss-tools
Arch : x86_64
Version: 3.11.7
Release: 0.7.2.fc7
Size : 3.2 M
Repo : installed
Summary: Herramienta para NSS (Network Security Services)

Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
File "/usr/share/yum-cli/yummain.py", line 94, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 266, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 164, in doCommand
base.listPkgs(ypl.installed, 'Installed Packages', basecmd)
File "/usr/share/yum-cli/output.py", line 102, in listPkgs
File "/usr/share/yum-cli/output.py", line 73, in infoOutput
print _("Description:\n%s") % pkg.description.encode("UTF-8")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 75: ordinal not in range(128)

Will file the proper bug report soon.

26th July 2007, 01:59 AM
Whaddayaknow? It turns out it is the kernel that may be the problem. Just booted with the previous 2.6.21 kernel and it has no problems... Strange.

26th July 2007, 03:31 PM
I submitted a buzilla report on a similar "yum info fails" problem a few weeks ago. There is an updated python package fix in the works.

26th July 2007, 05:49 PM
Thanks, that's good to know, will add to that bug, then.