Passing file descriptors over DBUS

Johnson, Charles F charles.f.johnson at
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 [mailto:dbus-
>bounces at] On Behalf Of Havoc Pennington
>Sent: Thursday, September 08, 2005 11:22 AM
>To: jg at
>Cc: dbus at
>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
>> 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
>> 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
>interesting questions about what happens when connecting to the bus
>dbus mailing list
>dbus at

More information about the dbus mailing list