Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281744 - hal-0.5.13 blocks consolekit messages by dbus
Summary: hal-0.5.13 blocks consolekit messages by dbus
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-17 10:08 UTC by Alexey Shvetsov
Modified: 2011-09-18 09:30 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
hal.conf (hal.conf,2.68 KB, text/plain)
2009-09-15 19:02 UTC, Alexey Shvetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shvetsov archtester gentoo-dev 2009-08-17 10:08:58 UTC
Aug 17 14:04:37 xeon dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.93" (uid=1000 pid=16053 comm="kded4) interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination="org.freedesktop.ConsoleKit" (uid=0 pid=20444 comm="/usr/sbin/console-kit-daemon))
Aug 17 14:04:37 xeon dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.93" (uid=1000 pid=16053 comm="kded4) interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination="org.freedesktop.ConsoleKit" (uid=0 pid=20444 comm="/usr/sbin/console-kit-daemon))


Reproducible: Always
Comment 1 Patrick Lauer gentoo-dev 2009-08-17 14:56:38 UTC
Are your config files all up-to-date and were the respective daemons restarted to be aware of the config changes?
Comment 2 Michiel de Bruijne 2009-08-18 22:16:43 UTC
(In reply to comment #1)
> Are your config files all up-to-date and were the respective daemons restarted
> to be aware of the config changes?
> 

Same over here, all configuration files are up to date, including the files from the packages below, after daemon/system restart same messages in logfile.
sys-auth/consolekit-0.3.0-r1
sys-apps/dbus-1.3.0
sys-apps/hal-0.5.13-r2
Comment 3 Billy DeVincentis 2009-09-14 12:18:57 UTC
Same problem here, seems most of the messages have something to do with kde4 apps or the startup of kde4.

Rejected send message, 1 matched rules; type="method_call", sender=":1.57" (uid=0 pid=10420 comm="konqueror) interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=6044 comm="/usr/sbin/hald))

Rejected send message, 1 matched rules; type="method_call", sender=":1.61" (uid=0 pid=32718 comm="kdeinit4: kio_trash [kdeinit] trash local:/tmp/kso") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=6044 comm="/usr/sbin/hald))

Rejected send message, 1 matched rules; type="method_call", sender=":1.35" (uid=1000 pid=9960 comm="kdeinit4: kded4 [kdeinit]) interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination="org.freedesktop.ConsoleKit" (uid=0 pid=6047 comm="/usr/sbin/console-kit-daemon))
Comment 4 Billy DeVincentis 2009-09-14 13:00:18 UTC
Here's some more

Rejected send message, 1 matched rules; type="method_call", sender=":1.88" (uid=0 pid=22106 comm="/usr/bin/krusader) interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=6044 comm="/usr/sbin/hald))
Comment 5 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-09-14 15:17:28 UTC
Introspectable, like most Hal dbus, is limited to group plugdev (if you do not have policykit) or at_console (if you do).  Presumably you are do not have policykit and are not in plugdev.  You'll need to fix one of those conditions.
Comment 6 Alexey Shvetsov archtester gentoo-dev 2009-09-14 19:18:45 UTC
(In reply to comment #5)
> Introspectable, like most Hal dbus, is limited to group plugdev (if you do not
> have policykit) or at_console (if you do).  Presumably you are do not have
> policykit and are not in plugdev.  You'll need to fix one of those conditions.
> 

you're completely wrong i have policykit and i'm in plugdev group 
Comment 7 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-09-15 02:34:25 UTC
If you have policykit, then plugdev is irrelevant.  Do you have consolekit running?  Does it list you as being active?  (ck-list-sessions will tell you what sessions consolekit knows about).
Comment 8 Alexey Shvetsov archtester gentoo-dev 2009-09-15 05:49:23 UTC
(In reply to comment #7)
> If you have policykit, then plugdev is irrelevant.  Do you have consolekit
> running?  Does it list you as being active?  (ck-list-sessions will tell you
> what sessions consolekit knows about).
> 

Yep i have it running and ck-list-sessions show my session 
Comment 9 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-09-15 12:59:41 UTC
Could you attach /etc/dbus-1/system.d/hal.conf
Comment 10 Alexey Shvetsov archtester gentoo-dev 2009-09-15 19:02:11 UTC
Created attachment 204237 [details]
hal.conf
Comment 11 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-09-15 19:37:26 UTC
Are you by any chance logged in as root?  If so, could you try as another user to see if that fixes it?  I'm guessing (although I don't know) that the user=root overrides the policykit policy for dbus.
Comment 12 Alexey Shvetsov archtester gentoo-dev 2009-09-15 20:10:18 UTC
(In reply to comment #11)
> Are you by any chance logged in as root?  If so, could you try as another user
> to see if that fixes it?  I'm guessing (although I don't know) that the
> user=root overrides the policykit policy for dbus.
> 
no =)

alexxy@xeon ~/gentoo-x86 $ whoami
alexxy
alexxy@xeon ~/gentoo-x86 $ id
uid=1000(alexxy) gid=1000(alexxy) groups=10(wheel),12(mail),18(audio),19(cdrom),27(video),35(games),80(cdrw),100(users),250(portage),1000(alexxy),1003(plugdev)
Comment 13 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-09-16 14:39:42 UTC
Well, at least some of the posts above are running as root:

Rejected send message, 1 matched rules; type="method_call", sender=":1.88"
(uid=0 pid=22106 comm="/usr/bin/krusader)

I wouldn't be surprised to find out that would break.

Anyway, next guess.  Can you run polkit-auth and post the output?
Comment 14 Stefan Hübner 2010-01-16 00:11:01 UTC
Same here.  The program I'm working on needs to acquire the global storage lock from HAL - but it's method calls are just rejected.  Why does somebody invent this behaviour?  It wasn't like this before!

- no Policykit (it once broke one of my machines)
- consolekit enabled
- root
- root is also explicitely in the plugdev group

- Error-Message:
===============================================================
dobbelherz ~ # ./projects/scsi/build/scsi
"DBUS-Interface zu HAL erstellt!"
"Globales Lock holen:
" QDBusMessage(type=Error, service="", error name="org.freedesktop.DBus.Error.AccessDenied", error message="Rejected send message, 1 matched rules; type="method_call", sender=":1.17" (uid=0 pid=3323 comm="./projects/scsi/build/scsi ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=2901 comm="/usr/sbin/hald --use-syslog --verbose=yes "))", signature="", contents=() )
Object::connect: No such slot QApplication::close() in /root/projects/scsi/devicetable.cpp:67
Object::connect:  (receiver name: 'scsi')
release Lock: QDBusMessage(type=Error, service="", error name="org.freedesktop.DBus.Error.AccessDenied", error message="Rejected send message, 1 matched rules; type="method_call", sender=":1.17" (uid=0 pid=3323 comm="./projects/scsi/build/scsi ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=2901 comm="/usr/sbin/hald --use-syslog --verbose=yes "))", signature="", contents=() )
================================================================
Would it help to just kick out the line(s) about denial in /etc/dbus-1/system.conf?  Why was this denial set up in the first place?
Comment 15 Daniel Gryniewicz (RETIRED) gentoo-dev 2010-01-20 13:09:32 UTC
Stefan: Since you're not using policykit, could you post your
/etc/dbus-1/system.d/hal.conf ?

The denial was added because without it, anyone on the box (local or remote, with any kind of privileges) can play with your hardware settings.  It's horribly insecure.  I'm trying to find a nice middle ground between the people on single-user boxes who just want it to work and the people on multi-user boxes who want it secure.
Comment 16 Maxim Kachur 2010-09-10 07:07:44 UTC
The same here I think.
hald daemon couldn't start as of consolekit can't start

p4c ~ # /etc/init.d/hald start
 * Starting ConsoleKit daemon ...                                                                                                 [ !! ]
 * ERROR:  cannot start hald as consolekit could not start

I think that it may be connected with http://bugs.gentoo.org/show_bug.cgi?id=336138 but they say that consolekit runs perfect
Comment 17 Maxim Kachur 2010-09-10 07:10:32 UTC
Sorry, made a mistake. It's here was said that consolekit is running but not in that bug
Comment 18 Maxim Kachur 2010-09-10 10:48:21 UTC
My story was from another bug. Re-emerging dev-libs/dbus-glib solved problem but now I have another problems: GNOME Desktop starts too slow and gnome-panel and some other apps works wrong
Comment 19 Daniel Gryniewicz (RETIRED) gentoo-dev 2010-09-10 14:10:20 UTC
Maxim: Why is consolekit failing to start?  Can you check /var/log/messages and so on to try to find out?  I suspect it's unrelated to this bug (and therefore should have a different bug).
Comment 20 Maxim Kachur 2010-09-11 06:50:28 UTC
(In reply to comment #19)
> Maxim: Why is consolekit failing to start?  Can you check /var/log/messages and
> so on to try to find out?  I suspect it's unrelated to this bug (and therefore
> should have a different bug).
> 

Daniel, thanks for reply. As I said above I solved my problem by re-emerging dev-libs/dbus-glib. You're right, that was a story from another bug. Can't reproduce it now so can't post some kind of error messages here. Now I have some problems with long GNOME Desktop launching, gnome-panel and firefox. Now doing emerge -eav system (needed to do it before: many apps need to be emerged twice cause of gcc segfaults so I want to see can it solve this problem). Then I plan to reemerge every glib-depended app and take a look does the problem disappear. I'll post results here. Anyway, thank you. Sorry for my bad English.
Comment 21 Samuli Suominen (RETIRED) gentoo-dev 2011-09-18 09:30:51 UTC
sys-apps/hal was removed from tree wrt #313389, closing as OBSOLETE