getsockopt using SO_PASSCRED option on dbus - possible ?

Lennart Poettering mzqohf at 0pointer.de
Thu Jul 15 12:53:50 PDT 2010


On Thu, 15.07.10 21:14, Julian Thomé (frostisch at yahoo.de) wrote:

> Hello Mailing List,
> 
> i want to retreive the credentials of the dbus-proxy-daemon using
> getsockopt after a simple connect. I have attached the sourcefile. But
> this doesn't work in this way. The pid returned is not the one of the
> dbus-daemon.

Note that SO_PASSCRED enables reception of SCM_CREDENTIALS. It is
orthogonal to SO_PEERCRED.

You are probably looking for the  dbus_bus_get_unix_user() in the
libdbus API.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the dbus mailing list