Re: Should kqueue descriptors work outsid of the creating process?

2012-06-02 Thread John Nemeth
On Oct 21, 9:16am, Matthew Mondor wrote: } On Thu, 31 May 2012 10:38:38 -0400 (EDT) } Mouse mo...@rodents-montreal.org wrote: } } Recently we found out (PR kern/46463) that kqueue() file descriptors, } which originaly were designed to be local process only objects, } could be passed with

Should kqueue descriptors work outsid of the creating process?

2012-05-31 Thread Martin Husemann
Recently we found out (PR kern/46463) that kqueue() file descriptors, which originaly were designed to be local process only objects, could be passed with SCM_RIGHTS messages to other processes. They probably can not be transfered any other way (i.e. on fork() they are not inherited). So this

Re: Should kqueue descriptors work outsid of the creating process?

2012-05-31 Thread Mouse
Recently we found out (PR kern/46463) that kqueue() file descriptors, which originaly were designed to be local process only objects, could be passed with SCM_RIGHTS messages to other processes. [...] I propose to not allow sending kqueue file descriptors [...] Or are there any legit uses

Re: Should kqueue descriptors work outsid of the creating process?

2012-05-31 Thread Matthew Mondor
On Thu, 31 May 2012 10:38:38 -0400 (EDT) Mouse mo...@rodents-montreal.org wrote: Recently we found out (PR kern/46463) that kqueue() file descriptors, which originaly were designed to be local process only objects, could be passed with SCM_RIGHTS messages to other processes. [...] I

Re: Should kqueue descriptors work outsid of the creating process?

2012-05-31 Thread Matthew Mondor
On Thu, 31 May 2012 14:40:44 -0400 Matthew Mondor mm_li...@pulsar-zone.net wrote: What I can see is that the implications of inheriting this special descriptor are quite more complex than for normal FDs... Which makes me think that it very well could be a design decision not to inherit