Bug 437254 - yum-refresh-updatesd fails after dbus upgrade
Summary: yum-refresh-updatesd fails after dbus upgrade
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-13 09:28 UTC by Bradley
Modified: 2008-09-10 07:05 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-02 11:22:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bradley 2008-03-13 09:28:19 UTC
Description of problem:

yum-refresh-updatesd is broken with dbus 1.1.2-9.fc8 - the message fails to be
sent due to a permissions error

Version-Release number of selected component (if applicable):

dbus-1.1.2-9.fc8
dbus-libs-1.1.2-9.fc8
dbus-libs-1.1.2-9.fc8
yum-refresh-updatesd-1.1.11-1.fc8
yum-updatesd-0.9-1.fc8

How reproducible:

Always

Steps to Reproduce:
1. Have yum-refresh-updatesd package installed and enabled
2. Make sure dbus 1.1.2-9.fc8 is installed (if not, make sure to restart the
messagebus service and then restart yum-updatesd)
3. yum update <any package> or remove, or anything that causes a transaction to run
  
Actual results:

(with -d 7):

Running "posttrans" handler for "refresh-updatesd" plugin
Unable to look at what's on dbus
org.freedesktop.DBus.Error.AccessDenied: A security policy in place prevents
this sender from sending this message to this recipient, see message bus
configuration file (rejected message had interface "(unset)" member
"NameHasOwner" error name "(unset)" destination "org.freedesktop.DBus")

Expected results:

dbus message is called, applet refreshes

Additional info:

Downgrading to dbus 1.1.2-7 (and then restarting messagebus + yum-updatesd)
fixes this. I'm assigning this to yum-updatesd because the change mentions CVE
2008-0595, which fixes a permissions issue. I don't know enough about dbus to
tell if its a dbus bug or if it happened to work before due to the security
issue and the yum-updatesd policy/code is broken

It also fails if I run the code manually from the python shell, so its not a yum
environment issue, ie:

Python 2.5.1 (r251:54863, Oct 30 2007, 13:45:26) 
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus
>>> bus = dbus.SystemBus()
>>> o = bus.get_object('org.freedesktop.DBus', '/')
>>> print o.NameHasOwner("edu.duke.linux.yum")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 63, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 135, in __call__
    **keywords)
  File "/usr/lib/python2.5/site-packages/dbus/connection.py", line 603, in
call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: A
security policy in place prevents this sender from sending this message to this
recipient, see message bus configuration file (rejected message had interface
"(unset)" member "NameHasOwner" error name "(unset)" destination
"org.freedesktop.DBus")

Comment 1 Bradley 2008-03-13 10:06:41 UTC
It works if I add

o = dbus.Interface(o, "org.freedesktop.DBus")

before the call to o.NameHasOwner

the patch in bug 432419 changed the logic for when the message has no interface
- is this a dbus bug with that patch & the default permissions?

Comment 2 Seth Vidal 2008-03-13 13:06:40 UTC
Adding DavidZ to see if this is a change in dbus or something that's been wrong
in yum-updatesd for a while.

Comment 3 Bradley 2008-05-05 03:37:08 UTC
ping? I looked at the similar-in-goals yum-packagekit source from rawhide and
that does get the interface separately.

Although does/should packagekit/yum-packagekit obsolete
yum-updatesd/yum-refresh-updatesd in f9 anyway?

Comment 6 Bradley 2008-06-01 13:08:29 UTC
Yep, that works, thanks (on F9)

Comment 7 Fedora Update System 2008-08-07 14:00:03 UTC
yum-utils-1.1.15-1.fc9 has been submitted as an update for Fedora 9

Comment 8 Fedora Update System 2008-08-07 14:05:42 UTC
yum-utils-1.1.15-1.fc8 has been submitted as an update for Fedora 8

Comment 9 Fedora Update System 2008-09-10 06:47:20 UTC
yum-utils-1.1.15-1.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2008-09-10 07:05:01 UTC
yum-utils-1.1.15-1.fc9 has been pushed to the Fedora 9 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.