Created attachment 21250 [details] [review] More syslog information This patch adds even more information to the logs; in particular the command is extremely useful for tracking down the origin of denied messages such as method replies that might otherwise have no information other than the connection basenames. Sample output: Dec 17 16:00:45 space-ghost dbus: Rejected send message, 1 matched rules; type="method_call", sender=":1.0" (uid=500 pid=24072 comm="/src/jhbuil d/checkout/dbus/tools/.libs/lt-dbus-sen") interface="org.freedesktop.TestSuite" member="Echo" error name="(unset)" destination="org.freedesktop. DBus.TestSuiteEchoService" (uid=500 pid=24132 comm="/src/jhbuild/checkout/dbus/test/test-service ")) Please review.
Comment on attachment 21250 [details] [review] More syslog information There's a _dbus_file_get_contents() you could probably use to read the info out of /proc and save some code. Patch looks good.
Created attachment 21255 [details] [review] further patch This further patch on top of the previous adds some more information, see the commit log.
(In reply to comment #1) > (From update of attachment 21250 [details] [review]) > There's a _dbus_file_get_contents() you could probably use to read the info out > of /proc and save some code. I originally tried using _get_contents and scratched my head as to why it didn't work; the problem turns out to be that it fstats() the file, but all files in /proc report a 0 size to stat, and so it just doesn't read anything. I considered adding a separate function, but it seems like a special use case anyways.
Pushed to master.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.