Passing file descriptors over DBUS

Johnson, Charles F charles.f.johnson at intel.com
Thu Sep 8 11:25:42 PDT 2005


Passing FDs over DBUS I assume would require a kernel hack, right ??
(It was already done for sockets.)  

Charles Johnson
Intel Corp.

>-----Original Message-----
>From: dbus-bounces at lists.freedesktop.org [mailto:dbus-
>bounces at lists.freedesktop.org] On Behalf Of Havoc Pennington
>Sent: Thursday, September 08, 2005 11:22 AM
>To: jg at freedesktop.org
>Cc: dbus at lists.freedesktop.org
>Subject: Re: Passing file descriptors over DBUS
>
>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)?
>
>Not that I've thought about it all that much, but pushing fds through
>dbus is going to be a moderately complicated patch I think and also
pose
>interesting questions about what happens when connecting to the bus
over
>tcp.
>
>Havoc
>
>
>_______________________________________________
>dbus mailing list
>dbus at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/dbus


More information about the dbus mailing list