|
|
Subscribe / Log in / New account

Attaching file descriptors to processes with CLONE_FD

Attaching file descriptors to processes with CLONE_FD

Posted Apr 2, 2015 10:28 UTC (Thu) by drysdale (guest, #95971)
In reply to: Attaching file descriptors to processes with CLONE_FD by justincormack
Parent article: Attaching file descriptors to processes with CLONE_FD

It turns out that implementation-wise, the process descriptor parts of Capsicum are fairly orthogonal to the capabilities/capability-mode parts of it. (For example, I keep a topic branch in my git repo for each, and merging the two branches together only requires 3 small diffs, basically adding the Capsicum rights checks for CAP_PDGETPID/CAP_PDKILL/CAP_PDWAIT.)

And, as is pointed out above, Josh and Thiago have been very receptive to making sure that the FreeBSD process descriptor primitives can be implemented in terms of the clonefd functionality (and future extensions to it). So I'm optimistic that we're going to end up with the best of both worlds -- clonefd functionality as a Linux primitive that can be lightly-wrapped to be compatible with the FreeBSD process descriptor API.



to post comments

Attaching file descriptors to processes with CLONE_FD

Posted Apr 2, 2015 10:32 UTC (Thu) by justincormack (subscriber, #70439) [Link]

That's great news. Looking forward to seeing it.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds