Passing file descriptors over DBUS
Jakub Piotr Cłapa
jpc at pld-linux.org
Thu Sep 8 14:43:56 PDT 2005
Havoc Pennington wrote:
> On Thu, 2005-09-08 at 10:15 -0400, Jim Gettys wrote:
>
>>The basic idea is to have the desktop initially in control of all input
>>devices (hotplug can do its thing), be able to query the user as to
>>whether to add them to the X server, and if so, then pass the open file
>>descriptor to the X server.
>
>
> Would it be simpler to have a socket or other filename for the device,
> and just use dbus to coordinate/control who opens it at any given time?
>
> Maybe the ORBit security model (put a randomly-generated filename in an
> unreadable directory so it acts as a security cookie)?
I have another idea which is a merge of this two --- create a sort lived
UNIX socket in the abstract namespace with a random name. The socket
name would be passed through dbus and the file descriptor is sent
through the socket. This way you will have security (the only
requirement is a good random number generator) without making DBus more
complicated.
--
Regards,
Jakub Piotr Cłapa
More information about the dbus
mailing list