An implementation of the GssPeerManager interface which draws its data from the D-Bus daemon. This is the only expected runtime implementation of the interface, and has only been split out from the interface to allow for easier unit testing of anything which uses it.
The credentials of a peer are retrieved from the D-Bus daemon using
/proc/$pid/cmdline to get the absolute path to the executable
for each peer, which we use as an identifier for it. This is not atomic or
particularly trusted, as PIDs can be reused in the time it takes us to query
the information, and processes can modify their own cmdline file, but
without an LSM enabled in the kernel and dbus-daemon, it’s the best we can do
for identifying processes.
GssPeerManagerDBus * gss_peer_manager_dbus_new (
Create a GssPeerManagerDBus object to wrap the given existing
a new GssPeerManagerDBus wrapping