3 ms·
> Like it's not possible to send an open file descriptor across RPC, but it's very possible (and very useful) to do the same over IPC. Really? I know you can u
by dahfizz 5y ago
> Like it's not possible to send an open file descriptor across RPC, but it's very possible (and very useful) to do the same over IPC.
Really? I know you can use SCM_RIGHTS on a socket, if that is what you mean. In my mind IPC means shared mmap'd memory, though
- kllrnohj 5y agoAndroid's Binder driver can send arbitrary FDs as can unix domain sockets via sendmsg. SCM_RIGHTS isn't limited to sending sockets, it can send any FD (open file, open socket, a memfd shared memory buffer, handle to a hardware resource, etc...)