[PATCH] fix inotify support

Michael Biebl mbiebl at gmail.com
Tue Jan 22 09:22:11 PST 2008


2008/1/22, Timo Hoenig <thoenig at suse.de>:
> Hi Michael,
>
> On Tue, 2008-01-22 at 14:39 +0100, Michael Biebl wrote:
>
> > dbus-1.1.4, which contains your patch, does no longer crash for me.
> > Unfortunately, the monitoring of /etc/dbus-1/system.d doesn't seem to
> > work either.
>
> Thanks for testing.
>
> Did you check if 'DBUS_VERBOSE=1 dbus-daemon --system --no-fork' gives a
> hint?  You have to run ./configure with --enable-verbose-mode for that.

Ok, this is what I did (maybe it helps you to reproduce the problem)
I upgraded NetworkManger (and nm-applet) from version 0.6.5 to 0.7.
The D-Bus config file of nm-applet got upgraded (I attached the old
and the new version).
Starting nm-applet 0.7 then resulted in this error message:

nm-applet --sm-disable

 ** (nm-applet:27294): WARNING **: <WARN>
applet_dbus_manager_start_service(): Could not acquire the
NetworkManagerUserSettings service.
   Message: 'Connection ":1.39" is not allowed to own the service
"org.freedesktop.NetworkManagerUserSettings" due to security policies
in the configuration file'

After I reloaded dbus, this error message went away and nm-applet started fine.

I tried to run dbus in debug mode, as Timo asked me too.
Unfortunately, I got a huge file (around 130Mb, I got tons of those
[1] messages) in a few minutes. So attaching it is not really
possible.

Some excerpts:
-- during early startup --
30627: Added watch on config directory '/etc/dbus-1/system.d'
...
-- after replacing nm-applet.conf --
30627: event name: 'nm-applet.conf'
30627: inotify event: wd=1 mask=2 cookie=0 len=16
30627: Sending SIGHUP signal on reception of a inotify event
30627: Setting watch fd 4 data to data = (nil) function = (nil) from
data = (nil) function = (nil)
30627: file fd 18 opened
30627: file fd 19 opened
30627: No cache for user "root"
30627: file fd 19 opened
30627: No cache for user "root"
30627: No cache for groupname "netdev"
30627: file fd 19 opened
30627: No cache for user "root"
30627: Loaded value 512 for limit max_replies_per_connection


HTH,
Michael

[1] 30627:   (policy) skipping non-receive rule
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nm-applet.conf.old
Type: application/x-trash
Size: 1143 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20080122/87243452/attachment.old 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nm-applet.conf.new
Type: application/octet-stream
Size: 1624 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20080122/87243452/attachment.obj 


More information about the dbus mailing list