[patch] get pid of peer
david at fubar.dk
Tue Jul 13 15:57:40 PDT 2004
Attached patch is similar to Kay's get_unix_user() patch only it adds
the get_process_id() instead to get the process id of a connection. It
also provides the method GetConnectionProcessID() on the bus. I started
writing this because eventually I want to add a some more policy pieces
to D-BUS such as
<!-- grant something here -->
but I figured out that I want to send this patch to begin with.
A few issues
- not all platforms easily support this; it kind of require passing
credentials on the socket for authentication.
- I'm not sure at all I'm doing the right thing in the function
I've also fixed two issues with the get_unix_user() patch; a debug
statement in the test function was wrong and the test function was never
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 16021 bytes
Desc: not available
Url : http://freedesktop.org/pipermail/dbus/attachments/20040714/792d575c/dbus-get-process-id.bin
More information about the dbus