simple UNIX_FD pass test?

Felipe Gasper felipe at felipegasper.com
Tue Nov 13 00:22:53 UTC 2018


> On Nov 12, 2018, at 7:17 PM, Lawrence D'Oliveiro <ldo at geek-central.gen.nz> wrote:
> 
> On Mon, 12 Nov 2018 10:18:52 -0500, Felipe Gasper wrote:
> 
>> Is there maybe a built-in (or systemd) method call that always returns
>> unix FDs or some such?
> 
> Open a file <https://linux.die.net/man/2/open>?
> 
> Open a pipe <https://linux.die.net/man/2/pipe>?
> 
> Duplicate a file descriptor <https://linux.die.net/man/2/dup>,
> <https://linux.die.net/man/2/dup2>, <https://linux.die.net/man/2/dup3>?
> 
> Random other things <https://linux.die.net/man/2/socket>,
> <https://linux.die.net/man/2/inotify_init>,
> <https://linux.die.net/man/2/epoll_create>?
> 
> Very likely other things here <https://linux.die.net/man/2/> that I’ve
> missed.

Hi,

	Sorry, clarification: I know how to pass FDs over a socket. I want to try passing FDs over D-Bus. What I am looking for is something that a typical Ubuntu install provides “out of the box” that will send and/or receive a unix FD over D-Bus.

	Does that help?

	I suppose I could rig my own two endpoints to pass messages w/ FDs back and forth, but I’m just trying to save myself that effort.

	Thank you!

-FG


More information about the dbus mailing list