The scenario is like this:
In a Linux based handheld device I have a C app which has dbus APIs ready to be called by 3rd party apps. The DBus APIs are called during booting time.
Is there any system API I can use to in my functions to print the caller's ID and save it to syslog?
Thanks in advance!
org.freedesktop.DBus.GetConnectionCredentials
method has been added too, which should be used in preference toGetConnectionUnixUser
andGetConnectionUnixProcessID
. It means one method call instead of two, eliminates some race conditions, and gives you additional information about security labels. See the specification: dbus.freedesktop.org/doc/… – Bromic