[openib-general] Re: creative file descriptor abuse in uverbs
Roland Dreier
rdreier at cisco.com
Tue Apr 18 13:37:40 PDT 2006
Roland> The closest analogy I can come up with is doing
Roland> socket()/bind() and then accept() on the socket, which
Roland> returns a new file desc.
Oh, I forgot one of the main points I wanted to talk about: doing
something like an open() on a file in uverbsfs to create a new event
channel attached to a given context means that we would have to do
some crazy permissions or namespace stuff to restrict access to the
right set of processes. And this would break if someone passed a
context FD through a unix domain socket or something bizarre like that.
Maybe I'm wrong but that doesn't seem like the right way to do it to
me. Even if we were redesigning things today I don't think we would
create a socketfs with accept() replaced by open() on some magic
file...
- R.
More information about the general
mailing list