[PATCH] fix inotify support

Steev Klimaszewski steev at gentoo.org
Wed Jan 23 12:20:35 PST 2008


On Tue, 2008-01-22 at 18:22 +0100, Michael Biebl wrote:
> 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
> _______________________________________________

See the same thing on Gentoo as well.  2.6.23 kernel.



More information about the dbus mailing list